Based upon RailsCast 238 - Mongoid-Revised