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

Instance Attribute Summary collapse

Method Summary

Methods included from ModelHash

#configuration_hash, #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

#installation_identifierObject

Returns the value of attribute installation_identifier.



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

def installation_identifier
  @installation_identifier
end