aboutsummaryrefslogtreecommitdiffstats
path: root/railties
diff options
context:
space:
mode:
authorGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-01 02:12:25 -0500
committerGuillermo Iguaran <guilleiguaran@gmail.com>2013-12-01 02:12:25 -0500
commite898baa55357976ae600dca19a220f8edf3cb356 (patch)
tree15cc9330438b436600e5ced05b4754934bc08951 /railties
parentb77356e840a5077c737a13453f3f18552e9e28af (diff)
downloadrails-e898baa55357976ae600dca19a220f8edf3cb356.tar.gz
rails-e898baa55357976ae600dca19a220f8edf3cb356.tar.bz2
rails-e898baa55357976ae600dca19a220f8edf3cb356.zip
Honor to RAILS_GROUPS env variable while loading gems with Bundler
Diffstat (limited to 'railties')
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/application.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/application.rb b/railties/lib/rails/generators/rails/app/templates/config/application.rb
index ac41a0cadb..a8cff606b1 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/application.rb
+++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb
@@ -15,7 +15,7 @@ require "action_mailer/railtie"
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
-Bundler.require(:default, Rails.env)
+Bundler.require(*Rails.groups)
module <%= app_const_base %>
class Application < Rails::Application