Class: Api::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Api::BaseController
- Defined in:
- app/controllers/api/base_controller.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#current_resource_owner ⇒ Object
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_login ⇒ Object
7 8 9 |
# File 'app/controllers/api/base_controller.rb', line 7 def verify_api_login render :json => {:success => false} unless current_user && params[:auth_token] end |