module Rodauth::Rails::ControllerMethods
Public Class Methods
included(controller)
click to toggle source
# File lib/rodauth/rails/controller_methods.rb, line 4 def self.included(controller) # ActionController::API doesn't have helper methods if controller.respond_to?(:helper_method) controller.helper_method :rodauth end end
Public Instance Methods
rodauth(name = nil)
click to toggle source
# File lib/rodauth/rails/controller_methods.rb, line 11 def rodauth(name = nil) request.env.fetch ["rodauth", *name].join(".") end