I have an Event
model, which stores an event feed for each user. I also need to email the updates to users which have enabled email notifications in their profile.
From an architectural point of view, which one is better?
- call the mailer in an
after_create
method in the model, since it's a part of the business logic; - call the mailer in an
after_create
method in an observer, since it doesn't really operate on the model and it also depends on the user's settings.