Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Copy over correct 'Bundler.require' code from the default Rails 3.1 c…

  • Loading branch information...
commit 8c6497e629ef6a1bda8ada3b0df7daa7e35877b1 1 parent 830ae5e
@FooBarWidget FooBarWidget authored
Showing with 6 additions and 4 deletions.
  1. +6 −4 config/application.rb
10 config/application.rb
@@ -6,10 +6,12 @@
require 'securerandom'
require 'uri'
-# If you have a Gemfile, require the default gems, the ones in the
-# current environment and also include :assets gems if in development
-# or test environments.
-Bundler.require *Rails.groups(:assets) if defined?(Bundler)
+if defined?(Bundler)
+ # If you precompile assets before deploying to production, use this line
+ Bundler.require(*Rails.groups(:assets => %w(development test)))
+ # If you want your assets lazily compiled in production, use this line
+ # Bundler.require(:default, :assets, Rails.env)
Please sign in to comment.
Something went wrong with that request. Please try again.