lib/rails/auth/acl/matchers/allow_all.rb in rails-auth-0.2.0 vs lib/rails/auth/acl/matchers/allow_all.rb in rails-auth-0.3.0
- old
+ new
@@ -4,10 +4,10 @@
# Built-in predicate matchers
module Matchers
# Allows unauthenticated clients to access to a given resource
class AllowAll
def initialize(enabled)
- fail ArgumentError, "enabled must be true/false" unless [true, false].include?(enabled)
+ raise ArgumentError, "enabled must be true/false" unless [true, false].include?(enabled)
@enabled = enabled
end
def match(_env)
@enabled