闭社主体 forked from https://github.com/tootsuite/mastodon
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
1.0 KiB

  1. # Be sure to restart your server when you modify this file.
  2. #
  3. # This file contains migration options to ease your Rails 5.0 upgrade.
  4. #
  5. # Once upgraded flip defaults one by one to migrate to the new default.
  6. #
  7. # Read the Rails 5.0 release notes for more info on each option.
  8. # Enable per-form CSRF tokens. Previous versions had false.
  9. Rails.application.config.action_controller.per_form_csrf_tokens = false
  10. # Enable origin-checking CSRF mitigation. Previous versions had false.
  11. Rails.application.config.action_controller.forgery_protection_origin_check = false
  12. # Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`.
  13. # Previous versions had false.
  14. ActiveSupport.to_time_preserves_timezone = false
  15. # Require `belongs_to` associations by default. Previous versions had false.
  16. Rails.application.config.active_record.belongs_to_required_by_default = false
  17. # Do not halt callback chains when a callback returns false. Previous versions had true.
  18. ActiveSupport.halt_callback_chains_on_return_false = true