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

model.name_changed?(from: "Pete", to: "Ringo")