Sha256: 1e084bdd4f758375393f14587dc782af61f4063282fb30cb41ea3b5a007eab5d

Contents?: true

Size: 330 Bytes

Versions: 4

Compression:

Stored size: 330 Bytes

Contents

module Rails
  module Auth
    # Rails constraint to make sure the ACLs have been installed
    class InstalledConstraint
      def initialize(config = Rails.application)
        @config = config
      end

      def matches?(_request)
        @config.middleware.include?(Rails::Auth::ACL::Middleware)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-auth-2.1.4 lib/rails/auth/installed_constraint.rb
rails-auth-2.1.3 lib/rails/auth/installed_constraint.rb
rails-auth-2.1.2 lib/rails/auth/installed_constraint.rb
rails-auth-2.1.1 lib/rails/auth/installed_constraint.rb