1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activemodel/lib
Sean Griffin 18ae0656f5 Don't calculate all in-place changes to determine if attribute_changed?
Calling `changed_attributes` will ultimately check if every mutable
attribute has changed in place. Since this gets called whenever an
attribute is assigned, it's extremely slow. Instead, we can avoid this
calculation until we actually need it.

Fixes #18029
2014-12-22 14:55:58 -07:00
..
active_model Don't calculate all in-place changes to determine if attribute_changed? 2014-12-22 14:55:58 -07:00
active_model.rb Autoload ActiveModel::StrictValidationFailed 2014-04-16 22:48:51 +01:00