orbit-4-2/config/initializers/load_lists.rb

4 lines
199 B
Ruby
Raw Normal View History

#data = File.open(File.join(RAILS_ROOT, 'config', 'list.yml')).read
data = File.open(File.join(Rails.root, 'config', 'list.yml')).read
LIST = YAML::load(ERB.new(data).result(binding)).symbolize_keys