Class: OpenStax::Api::V1::OauthBasedApiController

Inherits:
ApiController
  • Object
show all
Defined in:
app/controllers/openstax/api/v1/oauth_based_api_controller.rb

Instance Method Summary collapse

Methods included from Apipie

included

Methods included from Roar

#get_representer, #standard_create, #standard_destroy, #standard_nested_create, #standard_read, #standard_sort, #standard_update

Instance Method Details

#current_userObject



7
8
9
# File 'app/controllers/openstax/api/v1/oauth_based_api_controller.rb', line 7

def current_user
  @current_api_user ||= ApiUser.new(doorkeeper_token, lambda { super })
end