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
|
self[:settings] = val
|
||||||
end
|
end
|
||||||
|
|
||||||
def mailboxer_email(_object)
|
# Mailboxer hooks and helper functions
|
||||||
nil # email
|
|
||||||
|
def mailboxer_email(_message)
|
||||||
|
if emails_allowed
|
||||||
|
email
|
||||||
|
else
|
||||||
|
nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def mailboxer_notifications
|
def mailboxer_notifications
|
||||||
|
|
Loading…
Add table
Reference in a new issue