app/models/mailbox.rb in mailboxer-0.1.2 vs app/models/mailbox.rb in mailboxer-0.1.3
- old
+ new
@@ -6,10 +6,11 @@
@messageable = messageable
end
#Returns the notifications for the messageable
def notifications(options = {})
- return Notification.receiver(@messageable)
+ #:type => nil is a hack not to give Messages as Notifications
+ return Notification.receiver(@messageable).where(:type => nil)
end
#Returns the conversations for the messageable
#
#Options