diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2012-10-08 17:44:51 +0200 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2012-10-08 17:44:51 +0200 |
commit | d81e76ddd6038a55c647b119ad393404af978b94 (patch) | |
tree | 9108314640e57da34540de1762d3d7fdb9e46621 | |
parent | 28a375a6b83d92367ced8309f6ae153de9e43609 (diff) | |
download | rails-d81e76ddd6038a55c647b119ad393404af978b94.tar.gz rails-d81e76ddd6038a55c647b119ad393404af978b94.tar.bz2 rails-d81e76ddd6038a55c647b119ad393404af978b94.zip |
Not precompiling your assets for production is a bad idea -- do not encourage it
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 8 |
1 files changed, 2 insertions, 6 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 39275e4285..ed4c0e6a95 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -11,12 +11,8 @@ require "action_mailer/railtie" <%= comment_if :skip_test_unit %>require "rails/test_unit/railtie" <% end -%> -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) -end +# Assume that assets are precompiled for production +Bundler.require(*Rails.groups(assets: %w(development test))) if defined?(Bundler) module <%= app_const_base %> class Application < Rails::Application |