Skip to content

Instantly share code, notes, and snippets.

@diegoy
Created June 13, 2017 01:11
Show Gist options
  • Save diegoy/b98a0809e7018d8e0ab071b8197906e7 to your computer and use it in GitHub Desktop.
Save diegoy/b98a0809e7018d8e0ab071b8197906e7 to your computer and use it in GitHub Desktop.
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