Skip to content

Commit

Permalink
Add comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
airblade committed Mar 12, 2012
1 parent cfc4de0 commit e38a34a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/paper_trail/has_paper_trail.rb
Expand Up @@ -108,6 +108,7 @@ def version_at(timestamp, reify_options={})
v ? v.reify(reify_options) : self
end

# 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) }
Expand Down

0 comments on commit e38a34a

Please sign in to comment.