Use configured timestamp field.
This commit is contained in:
parent
e38a34a494
commit
699e53acf2
|
@ -111,7 +111,7 @@ module PaperTrail
|
|||
# Returns the objects (not Versions) as they were between the given times.
|
||||
def versions_between(start_time, end_time, reify_options={})
|
||||
versions = send(self.class.versions_association_name).between(start_time, end_time)
|
||||
versions.collect{ |version| version_at(version.created_at) }
|
||||
versions.collect { |version| version_at(version.send PaperTrail.timestamp_field) }
|
||||
end
|
||||
|
||||
# Returns the object (not a Version) as it was most recently.
|
||||
|
|
Loading…
Reference in New Issue