Method: Mailboxer::Notification.notify_all
- Defined in:
- app/models/mailboxer/notification.rb
.notify_all(recipients, subject, body, obj = nil, sanitize_text = true, notification_code = nil, send_mail = true, sender = nil) ⇒ Object
Sends a Notification to all the recipients
35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'app/models/mailboxer/notification.rb', line 35 def notify_all(recipients, subject, body, obj = nil, sanitize_text = true, notification_code=nil, send_mail=true, sender=nil) notification = Mailboxer::NotificationBuilder.new({ :recipients => recipients, :subject => subject, :body => body, :notified_object => obj, :notification_code => notification_code, :sender => sender }).build notification.deliver sanitize_text, send_mail end |