diff options
Diffstat (limited to 'railties/lib/rails/generators/rails/app/templates/config.ru')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config.ru | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config.ru b/railties/lib/rails/generators/rails/app/templates/config.ru index 541e200193..52a8a8e798 100644 --- a/railties/lib/rails/generators/rails/app/templates/config.ru +++ b/railties/lib/rails/generators/rails/app/templates/config.ru @@ -1,7 +1,8 @@ # Rack Dispatcher +# Bootstrap rails +require ::File.dirname(__FILE__) + '/config/boot' # Require your environment file to bootstrap Rails -require ::File.dirname(__FILE__) + '/config/environment' # Dispatch the request -run ActionController::Dispatcher.new +run Rails::Application.load(::File.dirname(__FILE__) + '/config/environment.rb') |