diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-22 14:31:09 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2014-08-22 14:31:09 -0300 |
commit | 50e47a3711101e4294334ab27b7502dfd0228ef2 (patch) | |
tree | b990dbf0c1c689adf71a57c63c9be13c723e9961 /activerecord | |
parent | ab00b2453519f7b1896c0e11a63e5630121dc7d1 (diff) | |
parent | 35bbf0923b038464bb0334e9f75181ea0847d15a (diff) | |
download | rails-50e47a3711101e4294334ab27b7502dfd0228ef2.tar.gz rails-50e47a3711101e4294334ab27b7502dfd0228ef2.tar.bz2 rails-50e47a3711101e4294334ab27b7502dfd0228ef2.zip |
Merge pull request #16645 from sgrif/sg-perf-regression
Don't calculate in-place changes twice
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/lib/active_record/attribute_methods/dirty.rb | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/lib/active_record/attribute_methods/dirty.rb b/activerecord/lib/active_record/attribute_methods/dirty.rb index d3f4e51c33..01f126f1b3 100644 --- a/activerecord/lib/active_record/attribute_methods/dirty.rb +++ b/activerecord/lib/active_record/attribute_methods/dirty.rb @@ -43,14 +43,6 @@ module ActiveRecord calculate_changes_from_defaults end - def changed? - super || changed_in_place.any? - end - - def changed - super | changed_in_place - end - def changes_applied super store_original_raw_attributes |