spec/dummy/config/environments/production.rb in genderize-0.0.6 vs spec/dummy/config/environments/production.rb in genderize-0.0.7
- old
+ new
@@ -17,11 +17,15 @@
# Enable Rack::Cache to put a simple HTTP cache in front of your application
# 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 >= "4.2.0"
+ config.serve_static_files = false
+ else
+ # Disable Rails's static asset server (Apache or nginx will already do this).
+ config.serve_static_assets = false
+ end
# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
# config.assets.css_compressor = :sass