Actions
Defect #24348
closedacts_as_versioned use old style (Rails 2.x) of method call for #all
Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Fixed
Affected version:
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
Actions