Changeset 231
- Timestamp:
- 08/27/07 19:42:20 (1 year ago)
- Files:
-
- trunk/plugin/acts_as_ferret/lib/class_methods.rb (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/plugin/acts_as_ferret/lib/class_methods.rb
r226 r231 212 212 if find_options[:conditions] 213 213 if options[:limit] != :all || options[:page] 214 # correct result size if the user specified conditions 215 # wenn conditions: options[:limit] != :all --> ferret-query mit :all wiederholen und select count machen 214 # correct result size if the user specified database conditions by 215 # removing the ferret limit to get the complete ferret result set so 216 # we can ask the database for the total size of the result set. 216 217 result_ids = {} 217 218 find_id_by_contents(q, options.update(:limit => :all)) do |model, id, score, data|
