Add comment.

This commit is contained in:
Andy Stewart 2011-07-14 10:31:35 +01:00
parent c0f4e3282c
commit 774cf2aeaa
1 changed files with 1 additions and 0 deletions

View File

@ -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