Class: Spree::Api::V2::Tenant::AccountController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/api/v2/tenant/account_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#render_serialized_payload, #require_tenant, #scope

Instance Method Details

#showObject



8
9
10
# File 'app/controllers/spree/api/v2/tenant/account_controller.rb', line 8

def show
  render_serialized_payload { serialize_resource(resource) }
end

#updateObject



12
13
14
15
16
# File 'app/controllers/spree/api/v2/tenant/account_controller.rb', line 12

def update
  spree_authorize! :update, spree_current_user
  result = update_service.call(user: spree_current_user, user_params: user_update_params)
  render_result(result)
end