Created
June 13, 2017 01:11
-
-
Save diegoy/b98a0809e7018d8e0ab071b8197906e7 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.send_message(destination, message).deliver_later | |
AndroidNotification.send_message(destination, message) | |
AppleNotification.send_message(destination, message) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment