orbit-basic/config/initializers/load_lists.rb

3 lines
131 B
Ruby

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