mongoid/mongoid — pull request #3694 by Nielsomat (2014-06-17 10:03:51+00:00)
Title: Make attr_readonly compatible with field aliases

`attr_readonly` did not work as expected when being provided the aliases of fields. See 060687d for the failure scenario.

(I may have gone a little overboard with the specs… Feel free to cut as appropriate.)