changed ActiveRecord to Mongoid