Class: OrderedInitializers::Parser
- Inherits:
-
Object
- Object
- OrderedInitializers::Parser
- Defined in:
- lib/ordered_initializers/parser.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.path ⇒ Object
4 5 6 |
# File 'lib/ordered_initializers/parser.rb', line 4 def path "config/initializers.yml" end |
Instance Method Details
#initializer_files ⇒ Object
9 10 11 12 13 |
# File 'lib/ordered_initializers/parser.rb', line 9 def initializer_files YAML.safe_load(yml_file, aliases: true) rescue ArgumentError YAML.safe_load(yml_file) end |