class Navigatrix::Rendering::Context
Public Instance Methods
action_name()
click to toggle source
# File lib/navigatrix/rendering/context.rb, line 15 def action_name attempt_delegation(:action_name) end
controller_name()
click to toggle source
# File lib/navigatrix/rendering/context.rb, line 11 def controller_name attempt_delegation(:controller_name) end
current_path()
click to toggle source
# File lib/navigatrix/rendering/context.rb, line 7 def current_path request.env["PATH_INFO"] end
Private Instance Methods
attempt_delegation(method)
click to toggle source
# File lib/navigatrix/rendering/context.rb, line 21 def attempt_delegation(method) wrapped.send(method) if wrapped.respond_to?(method) end