use false instead of 0 for boolean column in where clause

fixes #113
This commit is contained in:
joshua stein 2014-01-21 20:53:29 -06:00
parent 71eeb6c7d2
commit fe83a5b780

View file

@ -219,7 +219,7 @@ class User < ActiveRecord::Base
end
def undeleted_sent_messages
sent_messages.where(:deleted_by_author => 0)
sent_messages.where(:deleted_by_author => false)
end
def unread_message_count