Class: Api::V1::BaseController
- Inherits:
-
ApplicationController
- Object
- ApplicationController
- Api::V1::BaseController
- Includes:
- ModelHash
- Defined in:
- lib/generators/happy_seed/api/templates/app/controllers/api/v1/base_controller.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#current_user ⇒ Object
Returns the value of attribute current_user.
-
#current_user_token ⇒ Object
Returns the value of attribute current_user_token.
Method Summary
Methods included from ModelHash
Instance Attribute Details
#current_user ⇒ Object
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_token ⇒ Object
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 |