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 over 7 years ago. Updated over 7 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 #1

Updated by Roman Shipiev over 7 years ago

Actions #2

Updated by Toshi MARUYAMA over 7 years ago

  • Category deleted (Wiki)
  • Target version set to 3.2.5
Actions #3

Updated by Toshi MARUYAMA over 7 years ago

  • Related to Defect #19957: acts_as_versioned not compatible with ActiveRecord 4.2.1 added
Actions #4

Updated by Jean-Philippe Lang over 7 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.

Actions #5

Updated by Jean-Philippe Lang over 7 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF