diff options
author | Joshua Peek <josh@joshpeek.com> | 2010-01-24 10:35:45 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2010-01-24 10:35:45 -0600 |
commit | 9543298d02fbd28c5edaadeed0d14f1ba19263dc (patch) | |
tree | 18c3a10396a0a913cb2a0c152dd9aafefb095942 /railties/lib/generators | |
parent | 92126521551a7c62e9032eda4a2b8a6d92c0279f (diff) | |
download | rails-9543298d02fbd28c5edaadeed0d14f1ba19263dc.tar.gz rails-9543298d02fbd28c5edaadeed0d14f1ba19263dc.tar.bz2 rails-9543298d02fbd28c5edaadeed0d14f1ba19263dc.zip |
Use Rails::Application ref in Rakefile and console scripts.
Less places you need to change if you rename your application.
Diffstat (limited to 'railties/lib/generators')
3 files changed, 3 insertions, 3 deletions
diff --git a/railties/lib/generators/rails/app/templates/Rakefile b/railties/lib/generators/rails/app/templates/Rakefile index c19ad0e945..9cb2046439 100755 --- a/railties/lib/generators/rails/app/templates/Rakefile +++ b/railties/lib/generators/rails/app/templates/Rakefile @@ -7,4 +7,4 @@ require 'rake' require 'rake/testtask' require 'rake/rdoctask' -<%= app_const %>.load_tasks +Rails::Application.load_tasks diff --git a/railties/lib/generators/rails/app/templates/script/console.tt b/railties/lib/generators/rails/app/templates/script/console.tt index 915c5b8294..47aa254f9f 100755 --- a/railties/lib/generators/rails/app/templates/script/console.tt +++ b/railties/lib/generators/rails/app/templates/script/console.tt @@ -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) diff --git a/railties/lib/generators/rails/app/templates/script/dbconsole.tt b/railties/lib/generators/rails/app/templates/script/dbconsole.tt index a92f6f2844..1e53c1d761 100755 --- a/railties/lib/generators/rails/app/templates/script/dbconsole.tt +++ b/railties/lib/generators/rails/app/templates/script/dbconsole.tt @@ -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) |