Permalink
Browse files

Fixing issues stemming from previous commit in Ruby 1.8.x.

  • Loading branch information...
1 parent 588af56 commit 51b450a5ba48a9745239ca1a69576a05815ccfd3 @batter batter committed Feb 11, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/paper_trail/has_paper_trail.rb
@@ -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

0 comments on commit 51b450a

Please sign in to comment.