app/models/mailbox.rb in mailboxer-0.9.0 vs app/models/mailbox.rb in mailboxer-0.10.0
- old
+ new
@@ -11,10 +11,10 @@
#:type => nil is a hack not to give Messages as Notifications
notifs = Notification.recipient(@messageable).where(:type => nil).order("notifications.created_at DESC")
if (options[:read].present? and options[:read]==false) or (options[:unread].present? and options[:unread]==true)
notifs = notifs.unread
end
- return notifs
+ return notifs
end
#Returns the conversations for the messageable
#
#Options