Orbit/config/initializers/load_lists.rb

4 lines
199 B
Ruby
Raw Permalink Normal View History

2011-07-12 08:00:57 +00:00
#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