Enable Asset Compression After Upgrading to Rails 4
It turns out that the
config.assets.compress = true directive no longer works in Rails 4. Instead, you need to specify the compressor in config/environment/production.rb like this:
It is strange that this was changed without any deprecation messages, but luckily it didn’t cause much damage.