test/dummy/config/environments/development.rb in paper_trail-4.2.0 vs test/dummy/config/environments/development.rb in paper_trail-5.0.0
- old
+ new
@@ -8,11 +8,11 @@
# Do not eager load code on boot.
config.eager_load = false
# Show full error reports and disable caching
- config.consider_all_requests_local = true
+ config.consider_all_requests_local = true
config.action_controller.perform_caching = false
# Don't care if the mailer can't send
# config.action_mailer.raise_delivery_errors = false
@@ -21,11 +21,13 @@
# Only use best-standards-support built into browsers
config.action_dispatch.best_standards_support = :builtin
# Raise exception on mass assignment protection for Active Record models
- config.active_record.mass_assignment_sanitizer = :strict if ::PaperTrail.active_record_protected_attributes?
+ if ::PaperTrail.active_record_protected_attributes?
+ config.active_record.mass_assignment_sanitizer = :strict
+ end
# Log the query plan for queries taking more than this (works
# with SQLite, MySQL, and PostgreSQL)
# config.active_record.auto_explain_threshold_in_seconds = 0.5
@@ -35,6 +37,5 @@
# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true
end
-