app/controllers/refinery/inquiries/admin/inquiries_controller.rb in refinerycms-inquiries-2.0.3 vs app/controllers/refinery/inquiries/admin/inquiries_controller.rb in refinerycms-inquiries-2.1.0
- old
+ new
@@ -39,10 +39,10 @@
def find_all_spam
@inquiries = Refinery::Inquiries::Inquiry.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
end
end