class ActiveJob::Serializers::ModuleSerializer

:nodoc:

def deserialize(hash)

def deserialize(hash)
  hash["value"].constantize
end

def klass

def klass
  Module
end

def serialize(constant)

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