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

#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