class Rails::Auth::ACL::Matchers::AllowAll
Allows unauthenticated clients to access to a given resource
Public Class Methods
new(enabled)
click to toggle source
# File lib/rails/auth/acl/matchers/allow_all.rb, line 10 def initialize(enabled) raise ArgumentError, "enabled must be true/false" unless [true, false].include?(enabled) @enabled = enabled end
Public Instance Methods
attributes()
click to toggle source
Generates inspectable attributes for debugging
@return [true, false] is the matcher enabled?
# File lib/rails/auth/acl/matchers/allow_all.rb, line 23 def attributes @enabled end
match(_env)
click to toggle source
# File lib/rails/auth/acl/matchers/allow_all.rb, line 16 def match(_env) @enabled end