Observers in Rails
Let’s say you need to listen to changes in a model’s attributes and trigger some events based on those changes. If you look at the following example, I’ve done exactly that. If the status of the application is changed an email is sent.
Continue read: https://codebrahma.com/observers-in-rails/
Post a comment