Remove Rails 4 compatibility cruft.

This commit is contained in:
Christoph Haas 2015-04-23 17:18:55 +02:00
parent 7005c5397a
commit 754953a653
2 changed files with 4 additions and 2 deletions

View file

@ -10,6 +10,9 @@ Debshots::Application.configure do
# Rake tasks automatically ignore this option for performance.
config.eager_load = true
# ActiveRecord errors propagate normally (forward deprecation to Rails 5)
config.active_record.raise_in_transactional_callbacks = true
# Full error reports are disabled and caching is turned on.
config.consider_all_requests_local = false
config.action_controller.perform_caching = true
@ -20,7 +23,6 @@ Debshots::Application.configure do
# 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 = true
# Compress JavaScripts and CSS.

View file

@ -13,7 +13,7 @@ Debshots::Application.configure do
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.