framework defaults tidied up for rails 7
This commit is contained in:
parent
55ea782b86
commit
e32b6bb0ed
4 changed files with 5 additions and 119 deletions
|
|
@ -14,10 +14,6 @@ Rails.application.config.action_controller.per_form_csrf_tokens = false
|
|||
# Enable origin-checking CSRF mitigation. Previous versions had false.
|
||||
Rails.application.config.action_controller.forgery_protection_origin_check = false
|
||||
|
||||
# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
|
||||
# Previous versions had false.
|
||||
ActiveSupport.to_time_preserves_timezone = false
|
||||
|
||||
# Require `belongs_to` associations by default. Previous versions had false.
|
||||
Rails.application.config.active_record.belongs_to_required_by_default = false
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue