In many cases I see this kind of condition:

if status_id_changed? && status_id == Status::ACCEPTED

So maybe it will be nice to introduce a new method like:

if status_id_changed_to?(Status::ACCEPTED)

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/rubyonrails-core.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to