Module: OmniAuth::Identity::Model::ClassCreateApi

Defined in:
lib/omniauth/identity/model.rb

Instance Method Summary collapse

Instance Method Details

#create(*_args) ⇒ Model

Deprecated.

v4.0 will begin using #new with #save instead.

This method is abstract.

Persists a new Identity object to the ORM. Only included if the class doesn’t define create, as a reminder to define create. Override as needed per ORM.

Parameters:

  • _args (Hash)

    Attributes of the new instance.

Returns:

  • (Model)

    An instance of the identity model class.

Raises:

  • (NotImplementedError)

Since:

  • 3.0.5



79
80
81
# File 'lib/omniauth/identity/model.rb', line 79

def create(*_args)
  raise NotImplementedError
end