プロジェクト

全般

プロフィール

Vote #63399

完了

Load problem with acts_as_searchable

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

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Search engine_16
対象バージョン:
開始日:
2008/06/10
期日:
進捗率:

0%

予定工数:
category_id:
16
version_id:
2
issue_org_id:
1421
author_id:
993
assigned_to_id:
0
comments:
1
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

Acts as searchable verify that the @project_id@ and @created_on@ columns exists when not providing @project_key@ and @date_column@ options in the model defined to be searchable.
When one of those options is not set, an error is raised when the corresponding column (or the entire table) doesn't exists by loading the model.

I think that loading time is not the right moment for doing this verification. None of the rails mechanisms prevent a model to be loaded because of missing column in the database.

This defect causes me problem during initial @rake db:migrate@ when loading a conf that loads some models that are searchable.

Here is a patch that solves the problem.


journals

Fixed in r1682.
--------------------------------------------------------------------------------

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

  • カテゴリSearch engine_16 にセット
  • 対象バージョン0.8_2 にセット

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

いいね!0
いいね!0