lib/rails/auth/acl.rb in rails-auth-0.3.0 vs lib/rails/auth/acl.rb in rails-auth-0.4.0
- old
+ new
@@ -59,10 +59,10 @@
# @param [Hash] :env Rack environment
#
# @return [Array<Rails::Auth::ACL::Resource>] matching resources
#
def matching_resources(env)
- @resources.find_all { |resource| resource.match_method_and_path(env) }
+ @resources.find_all { |resource| resource.match!(env) }
end
private
def parse_predicates(entry, matchers)