Skip to content

Commit

Permalink
.find_with_index is deprecated in favor of .with_query
Browse files Browse the repository at this point in the history
  • Loading branch information
joemsak authored and djones committed Jul 22, 2010
1 parent 0b7ded1 commit b3a1f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/search_engine.rb
Expand Up @@ -12,7 +12,7 @@ def self.search(query, page = 1)
# over multiple plugins that are registered with Refinery to do so
# rather than hardcoding it
[Page, NewsItem].each do |model|
results << model.find_with_index(query, :limit => RESULTS_LIMIT)
results << model.with_query(query).find(:all, :limit => RESULTS_LIMIT)
end

results.flatten[0..(RESULTS_LIMIT - 1)]
Expand Down

0 comments on commit b3a1f2a

Please sign in to comment.