Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Jul 14, 2011
1 parent afa1b14 commit 6367d34
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/paper_trail/has_paper_trail.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ def record_update
:whodunnit => PaperTrail.whodunnit
}
if Version.method_defined? :object_changes
# The double negative (reject, !include?) preserves the hash structure of self.changes.
data[:object_changes] = self.changes.reject do |key, value|
!notably_changed.include?(key)
end.to_yaml
Expand Down

0 comments on commit 6367d34

Please sign in to comment.