This repository has been archived on 2024-03-16. You can view files and clone it, but cannot push or open issues or pull requests.
orbit-4-1/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