lib/rails/auth/acl/resource.rb in rails-auth-0.4.0 vs lib/rails/auth/acl/resource.rb in rails-auth-0.4.1
- old
+ new
@@ -56,10 +56,10 @@
#
# @return [Boolean] method and path *only* match the given environment
#
def match!(env)
return false unless @http_methods.nil? || @http_methods.include?(env["REQUEST_METHOD".freeze])
- return false unless @path =~ env["REQUEST_PATH".freeze]
+ return false unless @path =~ env["PATH_INFO".freeze]
return false unless @host.nil? || @host =~ env["HTTP_HOST".freeze]
true
end
private