Skip to content

Commit

Permalink
Merge pull request rubygems#892 from ianks/fix-deprecations
Browse files Browse the repository at this point in the history
Fix deprecations introduced in Rails 4.2
  • Loading branch information
arthurnn committed Feb 20, 2015
2 parents 7dacb52 + 449ca72 commit c0cf10e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# config.action_dispatch.rack_cache = true

# Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_assets = false
config.serve_static_files = false

# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
Expand Down
2 changes: 1 addition & 1 deletion config/environments/recovery.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
config.action_controller.perform_caching = true
config.action_dispatch.x_sendfile_header = "X-Sendfile"
config.active_support.deprecation = :notify
config.serve_static_assets = true
config.serve_static_files = true
config.i18n.fallbacks = true

config.action_dispatch.session = {
Expand Down
2 changes: 1 addition & 1 deletion config/environments/staging.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
# config.action_dispatch.rack_cache = true

# Disable Rails's static asset server (Apache or nginx will already do this).
config.serve_static_assets = false
config.serve_static_files = false

# Compress JavaScripts and CSS.
config.assets.js_compressor = :uglifier
Expand Down
4 changes: 3 additions & 1 deletion config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
config.eager_load = false

# Configure static asset server for tests with Cache-Control for performance.
config.serve_static_assets = true
config.serve_static_files = true
config.static_cache_control = 'public, max-age=3600'

# Show full error reports and disable caching.
Expand All @@ -40,6 +40,8 @@

require 'clearance_backdoor'
config.middleware.use ClearanceBackdoor

config.active_support.test_order = :random
end

ENV['S3_KEY'] = 'this:is:an:ex:parrot'
Expand Down

0 comments on commit c0cf10e

Please sign in to comment.