Class: Devise::Api::ResourceOwnerService::SignUp

Inherits:
BaseService
  • Object
show all
Defined in:
app/services/devise/api/resource_owner_service/sign_up.rb

Instance Method Summary collapse

Instance Method Details

#callObject



10
11
12
13
14
15
16
17
# File 'app/services/devise/api/resource_owner_service/sign_up.rb', line 10

def call
  ActiveRecord::Base.transaction do
    resource_owner = yield create_resource_owner
    devise_api_token = yield call_create_devise_api_token_service(resource_owner)

    Success(devise_api_token)
  end
end