Permalink
Browse files

Use where(...).count instead of conditions.

  • Loading branch information...
1 parent 45286f1 commit cf5a39482f5efa16d2def2f4a74c6b0437f37920 @ugisozols ugisozols committed Jul 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/refinery/inquiries/admin/inquiries_controller.rb
@@ -41,7 +41,7 @@ def find_all_spam
end
def get_spam_count
- @spam_count = Refinery::Inquiries::Inquiry.count(:conditions => {:spam => true})
+ @spam_count = Refinery::Inquiries::Inquiry.where(:spam => true).count
end
end

0 comments on commit cf5a394

Please sign in to comment.