use all.each  in resources for mongoid2