Skip to content
Browse files

Don't require assets group in production by default, you can change t…

…his default in the application.rb anyways
  • Loading branch information...
1 parent 1f1bfaf commit 0c57ae102f938b8f3d14d7cc37ab15b87bdaa4f5 @spastorino spastorino committed Aug 3, 2011
Showing with 7 additions and 3 deletions.
  1. +7 −3 railties/lib/rails/generators/rails/app/templates/config/application.rb
View
10 railties/lib/rails/generators/rails/app/templates/config/application.rb
@@ -13,9 +13,13 @@
<% end -%>
# 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)
+# current environment and also include :assets gems if you ...
+if defined?(Bundler)
+ # ... precompile your assets
+ Bundler.require *Rails.groups(:assets => %w(development test))
+ # ... want your assets to be lazily compiled also in production
+ # Bundler.require(:default, :assets, Rails.env)
+end
module <%= app_const_base %>
class Application < Rails::Application

0 comments on commit 0c57ae1

Please sign in to comment.
Something went wrong with that request. Please try again.