mirror of
https://github.com/paper-trail-gem/paper_trail.git
synced 2022-11-09 11:33:19 -05:00
Add comment.
This commit is contained in:
parent
c0f4e3282c
commit
774cf2aeaa
1 changed files with 1 additions and 0 deletions
|
@ -80,6 +80,7 @@ class Version < ActiveRecord::Base
|
|||
end
|
||||
|
||||
# Returns what changed in this version of the item. Cf. `ActiveModel::Dirty#changes`.
|
||||
# Returns nil if your `versions` table does not have an `object_changes` text column.
|
||||
def changeset
|
||||
if Version.method_defined?(:object_changes)
|
||||
if changes = object_changes
|
||||
|
|
Loading…
Reference in a new issue