From bccf8d86c57a141aeb60d96bc3139fe2b5dc9240 Mon Sep 17 00:00:00 2001 From: Bob Van Landuyt Date: Wed, 12 Apr 2017 11:28:23 +0200 Subject: Rename `NamespaceValidator` to `DynamicPathValidator` This reflects better that it validates paths instead of a namespace model --- lib/constraints/group_url_constrainer.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/constraints/group_url_constrainer.rb') diff --git a/lib/constraints/group_url_constrainer.rb b/lib/constraints/group_url_constrainer.rb index 559f510944a..48a33690cb2 100644 --- a/lib/constraints/group_url_constrainer.rb +++ b/lib/constraints/group_url_constrainer.rb @@ -2,7 +2,7 @@ class GroupUrlConstrainer def matches?(request) id = request.params[:id] - return false unless NamespaceValidator.valid_full_path?(id) + return false unless DynamicPathValidator.valid_full_path?(id) Group.find_by_full_path(id).present? end -- cgit v1.2.3