Class: Api::BaseController

Inherits:
ApplicationController
  • Object
show all
Defined in:
app/controllers/api/base_controller.rb

Direct Known Subclasses

V1::BaseController

Instance Method Summary collapse

Instance Method Details

#current_resource_ownerObject



11
12
13
# File 'app/controllers/api/base_controller.rb', line 11

def current_resource_owner
  User.find(doorkeeper_token.resource_owner_id) if doorkeeper_token
end

#verify_api_loginObject



7
8
9
# File 'app/controllers/api/base_controller.rb', line 7

def 
  render :json => {:success => false} unless current_user && params[:auth_token]
end