Module: OrderedInitializers

Defined in:
lib/ordered_initializers.rb,
lib/ordered_initializers/rails.rb,
lib/ordered_initializers/parser.rb,
lib/ordered_initializers/version.rb

Defined Under Namespace

Classes: Parser, Railtie

Constant Summary collapse

VERSION =
"0.3.2".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.initializer_filesObject

Returns the value of attribute initializer_files.



5
6
7
# File 'lib/ordered_initializers.rb', line 5

def initializer_files
  @initializer_files
end

Class Method Details

.goObject



10
11
12
13
14
# File 'lib/ordered_initializers.rb', line 10

def go
  initializer_files.each do |file|
    load_config_initializer(file)
  end
end

.load_config_initializer(initializer) ⇒ Object



16
17
18
# File 'lib/ordered_initializers.rb', line 16

def load_config_initializer(initializer)
  load initializer
end