-
-
Save diegoy/ccd88f8146ac656d427741bd200f802e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SendNewMessageNotifications | |
include Interactor #this is the gem | |
def call | |
Mailer.sent_message(context.destination, | |
context.message).deliver_later | |
AndroidNotification.sent_message(context.destination, | |
context.message) | |
AppleNotification.sent_message(context.destination, | |
context.message) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment