Sha256: f75ff86003a0aa808e1112aa2d7757b794fb7d1eaf809f0ad249ff84d6c81710
Contents?: true
Size: 620 Bytes
Versions: 2
Compression:
Stored size: 620 Bytes
Contents
require_relative 'devise_definition/presenter' module WebammToRails module Sources module Initializers class Definitions def initialize(waml_definition:) @waml_definition = waml_definition end def collection base_collection = [] if @waml_definition.authentication.present? base_collection << { path: 'config/initializers/devise.rb', content: DeviseDefinition::Presenter.new(waml_definition: @waml_definition).render } end base_collection end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
webamm_to_rails-7.0.1 | lib/webamm_to_rails/sources/initializers/definitions.rb |
webamm_to_rails-7.0.0 | lib/webamm_to_rails/sources/initializers/definitions.rb |