rails/rails — pull request #13131 by gja (2013-12-02 04:54:41+00:00)
Title: Allows you to check if a field has changed to a particular value

I'll add documentation if people are interested in this change

model.name_changed?("Ringo")
model.name_changed?("John" => "Ringo")