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 11
11
config . action_controller . perform_caching = true
12
12
13
13
# 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
15
19
16
20
# Compress JavaScripts and CSS
17
21
config . assets . css_compressor = :yui
Original file line number Diff line number Diff line change 8
8
config . cache_classes = true
9
9
10
10
# 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
12
16
config . static_cache_control = "public, max-age=3600"
13
17
14
18
config . eager_load = false
Original file line number Diff line number Diff line change 20
20
# config.action_dispatch.rack_cache = true
21
21
22
22
# 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
24
28
25
29
# Compress JavaScripts and CSS.
26
30
config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 13
13
config . eager_load = false
14
14
15
15
# 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
17
21
config . static_cache_control = "public, max-age=3600"
18
22
19
23
# Show full error reports and disable caching.
Original file line number Diff line number Diff line change 12
12
config . action_controller . perform_caching = true
13
13
14
14
# 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
16
20
17
21
# Specify the default JavaScript compressor
18
22
config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 11
11
config . eager_load = false
12
12
13
13
# 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
15
19
config . static_cache_control = "public, max-age=3600"
16
20
17
21
# Show full error reports and disable caching
Original file line number Diff line number Diff line change 11
11
config . action_controller . perform_caching = true
12
12
13
13
# 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
15
19
16
20
# Specify the default JavaScript compressor
17
21
config . assets . js_compressor = :uglifier
Original file line number Diff line number Diff line change 10
10
config . eager_load = false
11
11
12
12
# 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
14
18
config . static_cache_control = "public, max-age=3600"
15
19
16
20
# 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"
3
3
# Specify your gem"s dependencies in sass-rails.gemspec
4
4
gemspec path: "../.."
5
5
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