Skip to content

Instantly share code, notes, and snippets.

@johnantoni
Created April 29, 2009 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save johnantoni/103725 to your computer and use it in GitHub Desktop.
Save johnantoni/103725 to your computer and use it in GitHub Desktop.
rails version
if Rails.version ~= /^2.3/
0
+ app_filename = "#{RAILS_ROOT}/app/controllers/application_controller.rb"
0
+ else
0
+ app_filename = "#{RAILS_ROOT}/app/controllers/application.rb"
0
+ end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment