Allows you to check if an attribute has changed to a particular value

model.name_changed?(from: "Pete", to: "Ringo")
Merge pull request #13131 from gja/changed-accepts-values

Allows you to check if a field has changed to a particular value