Added by Roman Shipiev about 10 years ago. Updated about 10 years ago.
Description
/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb
# Finds versions of a specific model. Takes an options hash like <tt>find</tt> def find_versions(id, options = {}) versioned_class.all({ :conditions => ["#{versioned_foreign_key} = ?", id], :order => 'version' }.merge(options)) end
Files
Related issues 1 (0 open — 1 closed)
Related to Is duplicate of Has duplicate Blocks Blocked by Precedes Follows Copied to Copied from Issue # Delay: days Cancel Multiple values allowed (comma separated).
Patch committed, thanks.
Also available in: PDF Atom