Commit 16774d4d2ad1299e3ef51a09425ff7f87c1eed8e
1 parent
658a4deb
Exists in
master
and in
28 other branches
ActionItem433: fixed. Look at http://projects.jkraemer.net/acts_as_ferret/ticket…
…/224 for updates on this git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@2052 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing
1 changed file
with
2 additions
and
0 deletions
Show diff stats
vendor/plugins/acts_as_ferret/lib/class_methods.rb
... | ... | @@ -145,6 +145,8 @@ module ActsAsFerret |
145 | 145 | # +page+ and +per_page+ are supposed to work regardless of any |
146 | 146 | # +conitions+ present in +find_options+. |
147 | 147 | def find_with_ferret(q, options = {}, find_options = {}) |
148 | + aaf_index.register_class(self, {}) | |
149 | + | |
148 | 150 | if respond_to?(:scope) && scope(:find, :conditions) |
149 | 151 | if find_options[:conditions] |
150 | 152 | find_options[:conditions] = "(#{find_options[:conditions]}) AND (#{scope(:find, :conditions)})" | ... | ... |