Defect #24348
acts_as_versioned use old style (Rails 2.x) of method call for #all
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | % Done: | 0% | ||
Category: | Code cleanup/refactoring | |||
Target version: | 3.2.5 | |||
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
Related issues
History
#1
Updated by Roman Shipiev about 4 years ago
- File 24348.patch
added
#2
Updated by Toshi MARUYAMA about 4 years ago
- Category deleted (
Wiki) - Target version set to 3.2.5
#3
Updated by Toshi MARUYAMA about 4 years ago
- Related to Defect #19957: acts_as_versioned not compatible with ActiveRecord 4.2.1 added
#4
Updated by Jean-Philippe Lang about 4 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.
#5
Updated by Jean-Philippe Lang about 4 years ago
- Status changed from Resolved to Closed