Commit fb77b15ca2c42236a8bab28ad0aeff39e030b7d1

Authored by Luke Baker
1 parent 668b7e3e

fix call to find_all_by_id so no warnings if some not found

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
app/controllers/questions_controller.rb
... ... @@ -314,7 +314,7 @@ class QuestionsController < InheritedResources::Base
314 314  
315 315 # only return questions with these recent votes
316 316 if counts['recent-votes'] && params[:all] != 'true'
317   - @questions = current_user.questions.scoped({}).find(counts['recent-votes'].keys)
  317 + @questions = current_user.questions.scoped({}).find_all_by_id(counts['recent-votes'].keys)
318 318 else
319 319 @questions = current_user.questions.scoped({})
320 320 @questions = @questions.created_by(params[:creator]) if params[:creator]
... ...