The logic already exists in mongoid's serialization backend file
This reverts commit 9de3c3a.
This reverts commit 6c22be3.
…g to constantize a hash.
The Psych yaml extension makes use of the coder to include the attributes we need when serializing and deserializing objects. The ActiveRecord serialization is also included so we can raise a Deserialization Error as before.