class Stenographer::RoutingConstraints::ViewerOnly

Public Instance Methods

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

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