Defect #24348

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

Added by Roman Shipiev 4 months ago. Updated 4 months ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Jean-Philippe Lang% 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

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


Related issues

Related to Redmine - Defect #19957: acts_as_versioned not compatible with ActiveRecord 4.2.1 Closed

Associated revisions

Revision 15950
Added by Jean-Philippe Lang 4 months ago

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

History

#1 Updated by Roman Shipiev 4 months ago

#2 Updated by Toshi MARUYAMA 4 months ago

  • Category deleted (Wiki)
  • Target version set to 3.2.5

#3 Updated by Toshi MARUYAMA 4 months ago

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

#4 Updated by Jean-Philippe Lang 4 months 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 4 months ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF