Method: Oath::Configuration#default_creation_method

Defined in:
lib/oath/configuration.rb

#default_creation_methodObject

Default creation method. Can be overriden via Oath.configure

See Also:

Since:

  • 0.0.15



31
32
33
34
35
36
# File 'lib/oath/configuration.rb', line 31

def default_creation_method
  ->(params) do
    updated_params = Oath.transform_params(params)
    Oath.config.user_class.create(updated_params)
  end
end