To edit pages or tickets please login with username/password: aaf/aaf

Ticket #225 (closed defect: fixed)

Opened 2 months ago

Last modified 1 month ago

ActsAsFerret.find doesn't observe models_or_index_name parameter if it's an Array

Reported by: aaf Assigned to: jk
Priority: major Milestone:
Component: 0plugin Version:
Keywords: Cc:

Description

It could be possible to pass an array of classes as parameter to the ActsAsFerret.find method to limit the search scope. This is not the case for me, the search is made on all indexed models. When the parameter is a Class object, it works as expected.

Adding this after the line 302 in acts_as_ferret.rb solved the problem.

models = models_or_index_name if Array === models_or_index_name

It might not be the best solution either :)

Pierre Paysant-Le Roux

Change History

06/25/08 17:14:08 changed by aaf

  • summary changed from {{{ActsAsFerret.find}}} doesn't observe models_or_index_name parameter if it's an {{{Array}}} to ActsAsFerret.find doesn't observe models_or_index_name parameter if it's an Array.

08/03/08 11:23:49 changed by jk

  • status changed from new to closed.
  • resolution set to fixed.

fixed in trunk.

To edit pages or tickets please login with username/password: aaf/aaf