class ActiveJob::Serializers::ModuleSerializer
def serialize(constant)
def serialize(constant) raise SerializationError, "Serializing an anonymous class is not supported" unless constant.name super("value" => constant.name) end
def serialize(constant) raise SerializationError, "Serializing an anonymous class is not supported" unless constant.name super("value" => constant.name) end