rails/rails — pull request #14673 by rbishop (2014-04-09 23:01:54+00:00)
Title: JavaScript and CSS compressors should have default values

While upgrading several applications from Rails 3.x to Rails 4, something that gets me every time is after getting everything out into production smoothly, we inevitably notice that the assets aren't being compressed. Doh, it's those pesky `js_compressor` and `css_compressor` configuration settings, again. When will I learn?

I think it would be to a lot of people's benefit if these config settings had default values. Here's a few reasons why:

* Most users are already using `uglifier` and `sass` as their compressors of choice. If they aren't, they will get an error and have better feedback to add the gems than just deploying to production and finding out the hard way
* If they are using different compressors, such as `yui` or `closure`, they can easily change the values in their environments for these config options, if they haven't done so already
* Creating a brand new Rails 4 application will have these defaulted to the settings I am suggesting

This would be immensely helpful for those of us upgrading to Rails 4 from previous versions of Rails.