Change ActiveRecord::Base to Mongoid::Document