diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-04 11:04:50 -0800 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2010-02-04 11:04:50 -0800 |
commit | a74ed0c2eef87d7fd159d9ac294ced33f4b10bfc (patch) | |
tree | 02e4b7ee5fac7ebaf39be7216d3309b1268b6147 /railties/lib/generators | |
parent | a871b1a4d246dcf6616a5e24e5d4df192428e690 (diff) | |
download | rails-a74ed0c2eef87d7fd159d9ac294ced33f4b10bfc.tar.gz rails-a74ed0c2eef87d7fd159d9ac294ced33f4b10bfc.tar.bz2 rails-a74ed0c2eef87d7fd159d9ac294ced33f4b10bfc.zip |
Autorequire default libs and those in groups named after the current Rails environment
Diffstat (limited to 'railties/lib/generators')
-rw-r--r-- | railties/lib/generators/rails/app/templates/config/application.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/generators/rails/app/templates/config/application.rb b/railties/lib/generators/rails/app/templates/config/application.rb index 2872d187ba..7c555c2542 100644 --- a/railties/lib/generators/rails/app/templates/config/application.rb +++ b/railties/lib/generators/rails/app/templates/config/application.rb @@ -11,8 +11,8 @@ require "active_resource/railtie" require "rails/test_unit/railtie" <% end -%> -# Auto-require all bundled libraries. -Bundler.require +# Auto-require default libraries and those for the current Rails environment. +Bundler.require :default, Rails.env module <%= app_const_base %> class Application < Rails::Application |