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

Less places you need to change if you rename your application.
This commit is contained in:
Joshua Peek 2010-01-24 10:35:45 -06:00
parent 9212652155
commit 9543298d02
3 changed files with 3 additions and 3 deletions

View File

@ -7,4 +7,4 @@ require 'rake'
require 'rake/testtask' require 'rake/testtask'
require 'rake/rdoctask' require 'rake/rdoctask'
<%= app_const %>.load_tasks Rails::Application.load_tasks

View File

@ -2,4 +2,4 @@ require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands/console' require 'rails/commands/console'
require File.expand_path('../../config/application', __FILE__) require File.expand_path('../../config/application', __FILE__)
Rails::Console.start(<%= app_const %>) Rails::Console.start(Rails::Application)

View File

@ -2,4 +2,4 @@ require File.expand_path('../../config/boot', __FILE__)
require 'rails/commands/dbconsole' require 'rails/commands/dbconsole'
require File.expand_path('../../config/application', __FILE__) require File.expand_path('../../config/application', __FILE__)
Rails::DBConsole.start(<%= app_const %>) Rails::DBConsole.start(Rails::Application)