Displaying 1 result from an estimated 1 matches for "newly_blocked".
2007 Jul 07
4
Setting a callback whose action depends on the previous state of the object
I''ve been reading about ActiveRecord::Callbacks and they''re really
cool. But I have a complex need I''m not sure they answer.
Let''s say we have a User model. User has a #status attribute, which
can be either "active", "closed" or "blocked".
I want to set a callback to perform an action if an "active" User has
been