We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c452094 commit 606c0f0Copy full SHA for 606c0f0
test/dummy_rails/config/environments/production.rb
@@ -20,7 +20,13 @@
20
# config.action_dispatch.rack_cache = true
21
22
# Disable Rails's static asset server (Apache or nginx will already do this).
23
- config.serve_static_assets = false
+ if config.respond_to?(:serve_static_files)
24
+ # rails >= 4.2
25
+ config.serve_static_files = true
26
+ elsif config.respond_to?(:serve_static_assets)
27
+ # rails < 4.2
28
+ config.serve_static_assets = true
29
+ end
30
31
# Compress JavaScripts and CSS.
32
config.assets.js_compressor = :uglifier
0 commit comments