Browse files

Rails script commands load the application rather than just boot

  • Loading branch information...
1 parent 6154278 commit 358451c2194c5b89b576fd623811da708ee89d95 @jeremy jeremy committed Feb 4, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/generators/rails/app/templates/script/rails
View
2 railties/lib/generators/rails/app/templates/script/rails
@@ -5,5 +5,5 @@ BOOT_PATH = File.expand_path('../../config/boot', __FILE__)
APP_PATH = File.expand_path('../../config/application', __FILE__)
ROOT_PATH = File.expand_path('../..', __FILE__)
-require BOOT_PATH
+require APP_PATH
require 'rails/commands'

0 comments on commit 358451c

Please sign in to comment.