test/dummy/config/environments/production.rb in abilities-0.0.2 vs test/dummy/config/environments/production.rb in abilities-0.0.3

- old
+ new

@@ -18,10 +18,14 @@ # Add `rack-cache` to your Gemfile before enabling this. # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid. # config.action_dispatch.rack_cache = true # Disable Rails's static asset server (Apache or nginx will already do this). - config.serve_static_assets = false + if Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2 + config.serve_static_files = false + else + config.serve_static_assets = false + end # Compress JavaScripts and CSS. config.assets.js_compressor = :uglifier # config.assets.css_compressor = :sass