diff options
author | Douwe Maan <douwe@selenight.nl> | 2018-01-31 10:52:09 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2018-02-06 12:06:38 -0600 |
commit | 75144b1e03db342730535f1f49b0e7cd2987d755 (patch) | |
tree | 30295c514e238b48a646d77c6b453e2ec44319f4 /app/models/route.rb | |
parent | 8d69436c901a3eee674e72c67d91de3994d30e0c (diff) | |
download | gitlab-ce-75144b1e03db342730535f1f49b0e7cd2987d755.tar.gz |
Validate path uniqueness only on Route, and bubble up appropriately
Diffstat (limited to 'app/models/route.rb')
-rw-r--r-- | app/models/route.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/route.rb b/app/models/route.rb index 3d4b5a8b5ee..07d96c21cf1 100644 --- a/app/models/route.rb +++ b/app/models/route.rb @@ -75,7 +75,7 @@ class Route < ActiveRecord::Base def ensure_permanent_paths return if path.nil? - errors.add(:path, "#{path} has been taken before. Please use another one") if conflicting_redirect_exists? + errors.add(:path, "has been taken before") if conflicting_redirect_exists? end def conflicting_redirect_exists? |