Permalink
Browse files

Use Rails::Application ref in Rakefile and console scripts.

Less places you need to change if you rename your application.
  • Loading branch information...
josh committed Jan 24, 2010
1 parent 9212652 commit 9543298d02fbd28c5edaadeed0d14f1ba19263dc
@@ -7,4 +7,4 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'
-<%= app_const %>.load_tasks
+Rails::Application.load_tasks
@@ -2,4 +2,4 @@ require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands/console'
require File.expand_path('../../config/application', __FILE__)
-Rails::Console.start(<%= app_const %>)
+Rails::Console.start(Rails::Application)
@@ -2,4 +2,4 @@ require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands/dbconsole'
require File.expand_path('../../config/application', __FILE__)
-Rails::DBConsole.start(<%= app_const %>)
+Rails::DBConsole.start(Rails::Application)

0 comments on commit 9543298

Please sign in to comment.