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
Updated by Toshi MARUYAMA about 8 years ago
- Category deleted (
Wiki) - Target version set to 3.2.5
Updated by Toshi MARUYAMA about 8 years ago
- Related to Defect #19957: acts_as_versioned not compatible with ActiveRecord 4.2.1 added
Updated by Jean-Philippe Lang about 8 years ago
- Category set to Code cleanup/refactoring
- Status changed from New to Resolved
- Assignee set to Jean-Philippe Lang
- Resolution set to Fixed
Patch committed, thanks.
Updated by Jean-Philippe Lang about 8 years ago
- Status changed from Resolved to Closed
Actions