class Stenographer::RoutingConstraints::ManagerOnly

Public Instance Methods

matches?(request) click to toggle source
# File lib/stenographer/routing_constraints/manager_only.rb, line 6
def matches?(request)
  request.session[:init] = true

  if Stenographer.manager.respond_to?(:call)
    Stenographer.manager.call(request.session)
  else
    Stenographer.manager
  end
end