Add comment.
This commit is contained in:
parent
c0f4e3282c
commit
774cf2aeaa
|
@ -80,6 +80,7 @@ class Version < ActiveRecord::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns what changed in this version of the item. Cf. `ActiveModel::Dirty#changes`.
|
# 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
|
def changeset
|
||||||
if Version.method_defined?(:object_changes)
|
if Version.method_defined?(:object_changes)
|
||||||
if changes = object_changes
|
if changes = object_changes
|
||||||
|
|
Loading…
Reference in New Issue