You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process of actually setting up an email being sent out to someone as a result of an object being saved is so much BETTER than bootstrapping that in Rails!
For Rails:
Add a mailer object and it's method.
Add a mailer views folder and it's html.
Add an after_save method to the model and call the mailer
(Wonder why mail isn't being sent, turn perform_deliveries on in development.rb)
For NotifyOn
Add a notify_on statement to the model
Add a mailer view under views/notifications
It's really only one more step, but it feels so much more lightweight.
That simplicity opens up the idea of: what if I just wanted simple mail alerts? Simple push notifications? I put NotifyOn in ShipIt but we probably won't ever look at notifications in that app. What if actually storing notifications was another config option? I.e., I could use notify just to send out email? (E.g., the notify_on_notifications table doesn't exist, don't persist notifications)
This isn't an urgent thing, but something to consider in looking at allowing this gem to see more in other projects. (For ShipIt, I was just going to periodically empty the notifications table)
The text was updated successfully, but these errors were encountered:
The process of actually setting up an email being sent out to someone as a result of an object being saved is so much BETTER than bootstrapping that in Rails!
For Rails:
For NotifyOn
It's really only one more step, but it feels so much more lightweight.
That simplicity opens up the idea of: what if I just wanted simple mail alerts? Simple push notifications? I put NotifyOn in ShipIt but we probably won't ever look at notifications in that app. What if actually storing notifications was another config option? I.e., I could use notify just to send out email? (E.g., the notify_on_notifications table doesn't exist, don't persist notifications)
This isn't an urgent thing, but something to consider in looking at allowing this gem to see more in other projects. (For ShipIt, I was just going to periodically empty the notifications table)
The text was updated successfully, but these errors were encountered: