Sha256: b2738a9f9a96a37df54a2d6fa2bc70c9774fc908d814c33865000a5bf2c2cf67
Contents?: true
Size: 331 Bytes
Versions: 1
Compression:
Stored size: 331 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-auth-2.1.0 | lib/rails/auth/installed_constraint.rb |