send mailboxer notifications as emails if user doesn't have emails disabled

This commit is contained in:
Devin Howard 2016-11-25 15:05:07 -05:00
parent 99060abbfc
commit 1d36ee03b2

View file

@ -111,8 +111,14 @@ class User < ApplicationRecord
self[:settings] = val
end
def mailboxer_email(_object)
nil # email
# Mailboxer hooks and helper functions
def mailboxer_email(_message)
if emails_allowed
email
else
nil
end
end
def mailboxer_notifications