diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-02-24 18:01:43 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-02-24 18:01:43 +0100 |
commit | 6bd1cae459d8635b10e839eed1c2bfc35ba2d1a2 (patch) | |
tree | cd5912f275eae24d6521cb684075cb3a7f9456a8 /railties/lib/rails/generators | |
parent | 149e3cd376caa23cf4d8c4b711b95e157186fc94 (diff) | |
download | rails-6bd1cae459d8635b10e839eed1c2bfc35ba2d1a2.tar.gz rails-6bd1cae459d8635b10e839eed1c2bfc35ba2d1a2.tar.bz2 rails-6bd1cae459d8635b10e839eed1c2bfc35ba2d1a2.zip |
Revert "move config.assets.precompile into config/application.rb"
This reverts commit 304f4d4c25ccabdbf97d37dd7a92a54d0b63a9c9.
As it turns out everything should behave as it did and we don't
need to move this configuration option.
Diffstat (limited to 'railties/lib/rails/generators')
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/application.rb | 4 | ||||
-rw-r--r-- | railties/lib/rails/generators/rails/app/templates/config/environments/production.rb.tt | 6 |
2 files changed, 6 insertions, 4 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 1275bce7e6..daf399a538 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/application.rb +++ b/railties/lib/rails/generators/rails/app/templates/config/application.rb @@ -31,10 +31,6 @@ module <%= app_const_base %> # Disable the asset pipeline. config.assets.enabled = false -<% else %> - # 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 -%> end end 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 1f0111368b..0ab91d9864 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 @@ -59,6 +59,12 @@ # 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 |