Class: OrderedInitializers::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/ordered_initializers/parser.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.pathObject



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

def path
  "config/initializers.yml"
end

Instance Method Details

#initializer_filesObject



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