fix KeywordConstraint

This commit is contained in:
manson 2014-08-11 10:59:03 +08:00
parent 285335b0c3
commit 308b4ec1a5
1 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
class KeywordConstraint
def matches?(request)
keywords = ["/admin", "/desktop", "/user", "/signup", "/login"]
keywords.all? { |k| !request.url.include?(k) }
end
def matches?(request)
keywords = ["/admin/", "/desktop", "/users/"]
keywords.all? { |k| !request.url.include?(k) }
end
end