Module: OmniAuth::Identity::Model::InstanceSaveApi

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

Overview

Provides a save method for models that don’t have one.

Instance Method Summary collapse

Instance Method Details

#save(**_options, &_block) ⇒ Model

This method is abstract.

Persists a new Identity object to the ORM.
Default raises an error. Override as needed per ORM.
This base version’s arguments are modeled after ActiveModel
since it is a pattern many ORMs follow

Parameters:

  • _options (Hash)

    Options for saving.

Returns:

  • (Model)

    An instance of the identity model class.

Raises:

  • (NotImplementedError)

Since:

  • 3.0.5



114
115
116
# File 'lib/omniauth/identity/model.rb', line 114

def save(**_options, &_block)
  raise NotImplementedError
end