method

convert_to_global_id_hash

rails latest stable - Class: ActiveJob

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

convert_to_global_id_hash(argument)
public

No documentation available.

# File activejob/lib/active_job/arguments.rb, line 208
      def convert_to_global_id_hash(argument)
        { GLOBALID_KEY => argument.to_global_id.to_s }
      rescue URI::GID::MissingModelIdError
        raise SerializationError, "Unable to serialize #{argument.class} "            "without an id. (Maybe you forgot to call save?)"
      end