Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 204df01c130a5bbeff766bd12db492d3eebee111 1 parent 7259fac
@ugisozols ugisozols authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.