module Delayed class PerformableMailer def perform ShallowMongoid.load(object).send(method_name, *args.map{|a| ShallowMongoid.load(a) }).deliver end end end