Skip to content

Commit

Permalink
Rails 7.1: raise on readonly assignment
Browse files Browse the repository at this point in the history
We don't use attr_readonly.
  • Loading branch information
rgarner committed Feb 6, 2025
1 parent f023d61 commit c99fcac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/new_framework_defaults_7_1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@
# behavior would allow assignment but silently not persist changes to the
# database.
#++
# Rails.application.config.active_record.raise_on_assign_to_attr_readonly = true
Rails.application.config.active_record.raise_on_assign_to_attr_readonly = true

###
# Enable validating only parent-related columns for presence when the parent is mandatory.
Expand Down

0 comments on commit c99fcac

Please sign in to comment.