Skip to content

Commit

Permalink
Fixing issues stemming from previous commit in Ruby 1.8.x.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Atkins committed Feb 11, 2013
1 parent 588af56 commit 51b450a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/paper_trail/has_paper_trail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ def record_update
end

def changes_for_paper_trail
self.changes.select do |key, value|
notably_changed.include?(key)
self.changes.delete_if do |key, value|
!notably_changed.include?(key)
end.tap do |changes|
self.class.serialize_attribute_changes(changes) # Use serialized value for attributes when necessary
end
Expand Down

0 comments on commit 51b450a

Please sign in to comment.