app/models/mailbox.rb in mailboxer-0.6.5 vs app/models/mailbox.rb in mailboxer-0.7.0

- old
+ new

@@ -40,10 +40,10 @@ when 'trash' conv = Conversation.trash(@messageable) end end - if (options[:read].present? and options[:read]==false) or (options[:unread].present? and options[:unread]==true) + if (options.has_key?(:read) && options[:read]==false) || (options.has_key?(:unread) && options[:unread]==true) conv = conv.unread(@messageable) end return conv end