mongoid/mongoid — pull request #1412 by dansari (2011-11-06 04:03:24+00:00)
Title: Added *_before_type_cast attributes

I was using a competing ODM before switching to Mongoid this week, and that one created *_before_type_cast attributes.

I was missing these sorely for Rails validation, so I added them. I hope I did it cleanly; it was just a few lines of code.