lib/rails/auth/acl/matchers/allow_all.rb in rails-auth-2.1.4 vs lib/rails/auth/acl/matchers/allow_all.rb in rails-auth-2.2.0

- old
+ new

@@ -1,13 +1,16 @@ +# frozen_string_literal: true + module Rails module Auth class ACL # Built-in matchers module Matchers # Allows unauthenticated clients to access to a given resource class AllowAll def initialize(enabled) raise ArgumentError, "enabled must be true/false" unless [true, false].include?(enabled) + @enabled = enabled end def match(_env) @enabled