Permalink
Browse files

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

  • Loading branch information...
1 parent 7259fac commit 204df01c130a5bbeff766bd12db492d3eebee111 @ugisozols ugisozols committed Jul 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app/controllers/refinery/inquiries/admin/inquiries_controller.rb
View
2 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 204df01

Please sign in to comment.