Commit f7f6e27713b86b07f3bdc5313b03414e372026cb
1 parent
d3c06408
Exists in
master
and in
1 other branch
Use Rails 3.2 default convention for requiring gem groups
Showing
1 changed file
with
6 additions
and
3 deletions
Show diff stats
config/application.rb
... | ... | @@ -9,9 +9,12 @@ require "action_mailer/railtie" |
9 | 9 | require 'mongoid/railtie' |
10 | 10 | require "sprockets/railtie" |
11 | 11 | |
12 | -# If you have a Gemfile, require the gems listed there, including any gems | |
13 | -# you've limited to :test, :development, or :production. | |
14 | -Bundler.require(:default, Rails.env) if defined?(Bundler) | |
12 | +if defined?(Bundler) | |
13 | + # If you precompile assets before deploying to production, use this line | |
14 | + Bundler.require(*Rails.groups(:assets => %w(development test))) | |
15 | + # If you want your assets lazily compiled in production, use this line | |
16 | + # Bundler.require(:default, :assets, Rails.env) | |
17 | +end | |
15 | 18 | |
16 | 19 | module Errbit |
17 | 20 | class Application < Rails::Application | ... | ... |