Skip to content

Commit

Permalink
Merge pull request #16645 from sgrif/sg-perf-regression
Browse files Browse the repository at this point in the history
Don't calculate in-place changes twice
  • Loading branch information
rafaelfranca committed Aug 22, 2014
2 parents ab00b24 + 35bbf09 commit 50e47a3
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions activerecord/lib/active_record/attribute_methods/dirty.rb
Expand Up @@ -43,14 +43,6 @@ def initialize_dup(other) # :nodoc:
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
Expand Down

0 comments on commit 50e47a3

Please sign in to comment.