File tree Expand file tree Collapse file tree 9 files changed +41
-9
lines changed
alternate_config_project/config/environments
engine_project/test/dummy/config/environments
sass_project/config/environments
scss_project/config/environments Expand file tree Collapse file tree 9 files changed +41
-9
lines changed Original file line number Diff line number Diff line change 1111 config . action_controller . perform_caching = true
1212
1313 # Disable Rails's static asset server (Apache or nginx will already do this)
14- config . serve_static_assets = false
14+ if config . respond_to? ( :serve_static_files )
15+ config . serve_static_files = false
16+ else
17+ config . serve_static_assets = false
18+ end
1519
1620 # Compress JavaScripts and CSS
1721 config . assets . css_compressor = :yui
Original file line number Diff line number Diff line change 88 config . cache_classes = true
99
1010 # Configure static asset server for tests with Cache-Control for performance
11- config . serve_static_assets = true
11+ if config . respond_to? ( :serve_static_files )
12+ config . serve_static_files = true
13+ else
14+ config . serve_static_assets = true
15+ end
1216 config . static_cache_control = "public, max-age=3600"
1317
1418 config . eager_load = false
Original file line number Diff line number Diff line change 2020 # config.action_dispatch.rack_cache = true
2121
2222 # Disable Rails's static asset server (Apache or nginx will already do this).
23- config . serve_static_assets = false
23+ if config . respond_to? ( :serve_static_files )
24+ config . serve_static_files = false
25+ else
26+ config . serve_static_assets = false
27+ end
2428
2529 # Compress JavaScripts and CSS.
2630 config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 1313 config . eager_load = false
1414
1515 # Configure static asset server for tests with Cache-Control for performance.
16- config . serve_static_assets = true
16+ if config . respond_to? ( :serve_static_files )
17+ config . serve_static_files = true
18+ else
19+ config . serve_static_assets = true
20+ end
1721 config . static_cache_control = "public, max-age=3600"
1822
1923 # Show full error reports and disable caching.
Original file line number Diff line number Diff line change 1212 config . action_controller . perform_caching = true
1313
1414 # Disable Rails's static asset server (Apache or nginx will already do this)
15- config . serve_static_assets = false
15+ if config . respond_to? ( :serve_static_files )
16+ config . serve_static_files = false
17+ else
18+ config . serve_static_assets = false
19+ end
1620
1721 # Specify the default JavaScript compressor
1822 config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 1111 config . eager_load = false
1212
1313 # Configure static asset server for tests with Cache-Control for performance
14- config . serve_static_assets = true
14+ if config . respond_to? ( :serve_static_files )
15+ config . serve_static_files = true
16+ else
17+ config . serve_static_assets = true
18+ end
1519 config . static_cache_control = "public, max-age=3600"
1620
1721 # Show full error reports and disable caching
Original file line number Diff line number Diff line change 1111 config . action_controller . perform_caching = true
1212
1313 # Disable Rails's static asset server (Apache or nginx will already do this)
14- config . serve_static_assets = false
14+ if config . respond_to? ( :serve_static_files )
15+ config . serve_static_files = false
16+ else
17+ config . serve_static_assets = false
18+ end
1519
1620 # Specify the default JavaScript compressor
1721 config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 1010 config . eager_load = false
1111
1212 # Configure static asset server for tests with Cache-Control for performance
13- config . serve_static_assets = true
13+ if config . respond_to? ( :serve_static_files )
14+ config . serve_static_files = true
15+ else
16+ config . serve_static_assets = true
17+ end
1418 config . static_cache_control = "public, max-age=3600"
1519
1620 # Show full error reports and disable caching
Original file line number Diff line number Diff line change @@ -3,4 +3,4 @@ source "https://rubygems.org"
33# Specify your gem"s dependencies in sass-rails.gemspec
44gemspec path: "../.."
55
6- gem "rails", "4.2.0.rc1 "
6+ gem "rails", "~> 4.2.0"
You can’t perform that action at this time.
0 commit comments