Sha256: da3201925537fcfb52e6eaa6f6cc9e0be92ebcca469b13efdac3bab7a70605f8

Contents?: true

Size: 356 Bytes

Versions: 10

Compression:

Stored size: 356 Bytes

Contents

# frozen_string_literal: true

module Stenographer
  module RoutingConstraints
    class ManagerOnly
      def matches?(request)
        request.session[:init] = true

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
stenographer-rails-0.7.4 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.7.3 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.7.1 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.7.0 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.6.5 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.6.4 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.6.3 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.6.2 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.6.1 lib/stenographer/routing_constraints/manager_only.rb
stenographer-rails-0.6.0 lib/stenographer/routing_constraints/manager_only.rb