プロジェクト

全般

プロフィール

Vote #77977

完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Code cleanup/refactoring_30
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
30
version_id:
124
issue_org_id:
24348
author_id:
161955
assigned_to_id:
1
comments:
5
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

@/lib/plugins/acts_as_versioned/lib/acts_as_versioned.rb@


          # Finds versions of a specific model.  Takes an options hash like find
          def find_versions(id, options = {})
            versioned_class.all({
              :conditions => ["#{versioned_foreign_key} = ?", id],
              :order      => 'version' }.merge(options))
          end

journals

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------

--------------------------------------------------------------------------------
Patch committed, thanks.
--------------------------------------------------------------------------------

--------------------------------------------------------------------------------


related_issues

relates,Closed,19957,acts_as_versioned not compatible with ActiveRecord 4.2.1

Admin Redmine さんが約4年前に更新

  • カテゴリCode cleanup/refactoring_30 にセット
  • 対象バージョン3.2.5_124 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0