send mailboxer notifications as emails if user doesn't have emails disabled
This commit is contained in:
parent
99060abbfc
commit
1d36ee03b2
1 changed files with 8 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue