Project

General

Profile

Actions

Defect #24348

closed

acts_as_versioned use old style (Rails 2.x) of method call for #all

Added by Roman Shipiev about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
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

24348.patch (917 Bytes) 24348.patch Roman Shipiev, 2016-11-14 14:14

Related issues

Related to Redmine - Defect #19957: acts_as_versioned not compatible with ActiveRecord 4.2.1ClosedJean-Philippe Lang

Actions
Actions

Also available in: Atom PDF