aboutsummaryrefslogtreecommitdiffstats
path: root/guides/code/getting_started/config
diff options
context:
space:
mode:
authorrobertomiranda <rjmaltamar@gmail.com>2013-03-28 16:59:42 -0500
committerrobertomiranda <rjmaltamar@gmail.com>2013-03-28 17:00:05 -0500
commitbbaa8ab5db1649323e70cd7f725c820a5f7f0334 (patch)
tree6da71659377b2f501b063455d872cbba4cb3f979 /guides/code/getting_started/config
parente2df5d08383ca7229c7504fbde7051592d3c8442 (diff)
downloadrails-bbaa8ab5db1649323e70cd7f725c820a5f7f0334.tar.gz
rails-bbaa8ab5db1649323e70cd7f725c820a5f7f0334.tar.bz2
rails-bbaa8ab5db1649323e70cd7f725c820a5f7f0334.zip
Update Bundler require in getting started application
Diffstat (limited to 'guides/code/getting_started/config')
-rw-r--r--guides/code/getting_started/config/application.rb5
1 files changed, 3 insertions, 2 deletions
diff --git a/guides/code/getting_started/config/application.rb b/guides/code/getting_started/config/application.rb
index 526a782b5c..3d7604b659 100644
--- a/guides/code/getting_started/config/application.rb
+++ b/guides/code/getting_started/config/application.rb
@@ -2,8 +2,9 @@ require File.expand_path('../boot', __FILE__)
require 'rails/all'
-# Assets should be precompiled for production (so we don't need the gems loaded then)
-Bundler.require(*Rails.groups(assets: %w(development test)))
+# Require the gems listed in Gemfile, including any gems
+# you've limited to :test, :development, or :production.
+Bundler.require(:default, Rails.env)
module Blog
class Application < Rails::Application