Class: CustomRenderer

Inherits:
AbstractController::Base
  • Object
show all
Includes:
AbstractController::AssetPaths, AbstractController::Helpers, AbstractController::Rendering, AbstractController::Translation, ActiveSupport::Configurable, CurrentUser
Defined in:
lib/custom_renderer.rb

Instance Method Summary collapse

Methods included from CurrentUser

#clear_current_user, #current_user, has_auth_cookie?, #is_api?, #is_user_api?, #log_off_user, #log_on_user, lookup_from_env, #refresh_session

Constructor Details

#initialize(parent) ⇒ CustomRenderer

Returns a new instance of CustomRenderer.



30
31
32
# File 'lib/custom_renderer.rb', line 30

def initialize(parent)
  @parent = parent
end

Instance Method Details

#action_nameObject



14
15
16
# File 'lib/custom_renderer.rb', line 14

def action_name
  ""
end

#controller_nameObject



18
19
20
# File 'lib/custom_renderer.rb', line 18

def controller_name
  ""
end

#cookiesObject



22
23
24
# File 'lib/custom_renderer.rb', line 22

def cookies
  @parent.public_send(:cookies)
end

#sessionObject



26
27
28
# File 'lib/custom_renderer.rb', line 26

def session
  @parent.public_send(:session)
end