mirror of https://github.com/rails/rails
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:
parent
9212652155
commit
9543298d02
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue