Skip to content

Commit

Permalink
Use Rails::Application ref in Rakefile and console scripts.
Browse files Browse the repository at this point in the history
Less places you need to change if you rename your application.
  • Loading branch information
josh committed Jan 24, 2010
1 parent 9212652 commit 9543298
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion railties/lib/generators/rails/app/templates/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ require 'rake'
require 'rake/testtask'
require 'rake/rdoctask'

<%= app_const %>.load_tasks
Rails::Application.load_tasks
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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.