RubyFlow The Ruby and Rails community linklog

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

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in