From 328f7ff6541a5dde64676541ac0e414e1eec901a Mon Sep 17 00:00:00 2001 From: jk Date: Mon, 29 Oct 2007 08:48:58 +0000 Subject: [PATCH] fixing #181 git-svn-id: svn://projects.jkraemer.net/acts_as_ferret/trunk/plugin/acts_as_ferret@257 7326d000-0a0e-0410-9cad-a9b28e7838dc --- lib/shared_index_class_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/shared_index_class_methods.rb b/lib/shared_index_class_methods.rb index 047b945..a97e2fd 100644 --- a/lib/shared_index_class_methods.rb +++ b/lib/shared_index_class_methods.rb @@ -14,7 +14,7 @@ module ActsAsFerret if original_query.is_a? String model_query = options[:models].map(&:name).join '|' - q << %{ +class_name:"#{model_query}"} + q += %{ +class_name:"#{model_query}"} else q = Ferret::Search::BooleanQuery.new q.add_query(original_query, :must) -- 2.11.4.GIT