aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-23 22:45:16 -0300
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2014-02-23 22:45:16 -0300
commit2403869966c2d9adc0413e30d4855f8df2c5487b (patch)
treefa6e086d3177d6356af2549c34119573234352f4
parentb16c36e688970df2f96f793a759365b248b582ad (diff)
downloadrails-2403869966c2d9adc0413e30d4855f8df2c5487b.tar.gz
rails-2403869966c2d9adc0413e30d4855f8df2c5487b.tar.bz2
rails-2403869966c2d9adc0413e30d4855f8df2c5487b.zip
Group assets options in production env template
-rw-r--r--railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt10
1 files changed, 4 insertions, 6 deletions
diff --git a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
index d9cc60d656..b789ed9a94 100644
--- a/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
+++ b/railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt
@@ -35,6 +35,10 @@ Rails.application.configure do
# Version of your assets, change this if you want to expire all your assets.
config.assets.version = '1.0'
+
+ # Precompile additional assets.
+ # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
+ # config.assets.precompile += %w( search.js )
<%- end -%>
# Specifies the header that your server uses for sending files.
@@ -59,12 +63,6 @@ Rails.application.configure do
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
# config.action_controller.asset_host = "http://assets.example.com"
- <%- unless options.skip_sprockets? -%>
- # Precompile additional assets.
- # application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
- # config.assets.precompile += %w( search.js )
- <%- end -%>
-
# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
# config.action_mailer.raise_delivery_errors = false