replaced all first(opts) and count(opts) with where(opts).count and where(opts).first first-count-next
authorPatrick Aljord <patcito@gmail.com>
Mon, 15 Nov 2010 02:48:30 +0000 (21:48 -0500)
committerPatrick Aljord <patcito@gmail.com>
Mon, 15 Nov 2010 02:48:30 +0000 (21:48 -0500)
commitd43467151b15e2919c28eec93442006264f5fc91
tree2773d8a54efbf66639ac8efd839493f2dcdde01e
parentced5e8dce6f8bdebbcd1d24e54401a63a353bae4
replaced all first(opts) and count(opts) with where(opts).count and where(opts).first
12 files changed:
app/controllers/answers_controller.rb
app/controllers/application_controller.rb
app/controllers/imports_controller.rb
app/controllers/questions_controller.rb
app/helpers/application_helper.rb
app/models/answer.rb
app/models/question.rb
app/models/report.rb
app/models/user.rb
lib/jobs/activities.rb
lib/jobs/questions.rb
lib/multiauth_support.rb