mongoid/mongoid — pull request #2898 by Nielsomat (2013-03-15 17:04:41+00:00)
Title: attribute_changed? and related should cope with aliases

Couldn't for the life of me figure out why my uniqueness validators weren't running. Turns out they are calling out to attribute_changed? before doing anything and the latter didn't understand aliases.

The attached should fix of Changeable's public-facing methods. The other methods should never be passed aliases in the first place, if I understand correctly, and thus don't require patching.