mongoid/mongoid — pull request #2784 by akm (2013-02-05 05:57:38+00:00)
Title: fix uniqueness validation problem with inheritance

switch the class to create criteria for uniqueness validation when the field is defined in ancestor class.
[ fix #2783 ]