Skip to content

Instantly share code, notes, and snippets.

@pawurb
Created July 29, 2014 11:56
Show Gist options
  • Save pawurb/8a5c60e3a9304966a488 to your computer and use it in GitHub Desktop.
Save pawurb/8a5c60e3a9304966a488 to your computer and use it in GitHub Desktop.
simple settings
file_content = File.open File.join(Rails.root, 'config', 'settings.yml')
Settings = OpenStruct.new(YAML.load(file_content)[Rails.env])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment