class ActiveJob::Serializers::ModuleSerializer

def serialize(constant)

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