You could give the user a choice by doing:
def mailboxer_email(object)
self.email if self.preferences.receive_direct_message_by_email?
end
or
def mailboxer_email(object)
if self.no_email
else
nil
end
end
You have to create a no_email
attribute if going with second method.