Skip to content

Commit

Permalink
re-enable belongs_to_required_by_default
Browse files Browse the repository at this point in the history
  • Loading branch information
acmetech committed Aug 27, 2016
1 parent caaaadf commit cdc2101
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/dummy/config/initializers/new_framework_defaults.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
ActiveSupport.to_time_preserves_timezone = true

# Require `belongs_to` associations by default. Previous versions had false.
Rails.application.config.active_record.belongs_to_required_by_default = false
Rails.application.config.active_record.belongs_to_required_by_default = true

# Do not halt callback chains when a callback returns false. Previous versions had true.
ActiveSupport.halt_callback_chains_on_return_false = false
Expand Down

0 comments on commit cdc2101

Please sign in to comment.