Skip to content

Instantly share code, notes, and snippets.

@vshvedov
Created November 16, 2011 21:13
Show Gist options
  • Save vshvedov/1371422 to your computer and use it in GitHub Desktop.
Save vshvedov/1371422 to your computer and use it in GitHub Desktop.
Rails 3: global variable (bad ass ;)
module MyAppName
class Application < Rails::Application
YOUR_GLOBAL_VAR = "test"
end
end
MyAppName::Application::YOUR_GLOBAL_VAR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment