Class: Api::V1::BaseController

Inherits:
ApplicationController
  • Object
show all
Includes:
ModelHash
Defined in:
lib/generators/happy_seed/api/templates/app/controllers/api/v1/base_controller.rb

Direct Known Subclasses

UserTokensController, UsersController

Instance Attribute Summary collapse

Method Summary

Methods included from ModelHash

#user_hash, #user_token_hash

Instance Attribute Details

#current_userObject

Returns the value of attribute current_user.



4
5
6
# File 'lib/generators/happy_seed/api/templates/app/controllers/api/v1/base_controller.rb', line 4

def current_user
  @current_user
end

#current_user_tokenObject

Returns the value of attribute current_user_token.



4
5
6
# File 'lib/generators/happy_seed/api/templates/app/controllers/api/v1/base_controller.rb', line 4

def current_user_token
  @current_user_token
end