Class: Stenographer::RoutingConstraints::ManagerOnly
- Inherits:
-
Object
- Object
- Stenographer::RoutingConstraints::ManagerOnly
- Defined in:
- lib/stenographer/routing_constraints/manager_only.rb
Instance Method Summary collapse
Instance Method Details
#matches?(request) ⇒ Boolean
6 7 8 9 10 11 12 13 14 |
# 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 |