diff options
author | Michael Kozono <mkozono@gmail.com> | 2018-01-09 12:09:24 -0800 |
---|---|---|
committer | Michael Kozono <mkozono@gmail.com> | 2018-01-09 12:09:24 -0800 |
commit | 3576d59ae95a61dd20e997a619dbc6c8e8a70276 (patch) | |
tree | e1fdf5744426907b1753ec93c6f0530bb6b25983 /app/models | |
parent | 48a018c608f3c3474c654ee78f82630e748655f5 (diff) | |
download | gitlab-ce-3576d59ae95a61dd20e997a619dbc6c8e8a70276.tar.gz |
Revert "Fix Route validation for unchanged path"
This reverts commit 8040edcce8b4e736b4f4857e6709f94aeb5e274c.
Diffstat (limited to 'app/models')
-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 412f5fb45a5..7ba3ec06041 100644 --- a/app/models/route.rb +++ b/app/models/route.rb @@ -8,7 +8,7 @@ class Route < ActiveRecord::Base presence: true, uniqueness: { case_sensitive: false } - validate :ensure_permanent_paths, if: :path_changed? + validate :ensure_permanent_paths after_create :delete_conflicting_redirects after_update :delete_conflicting_redirects, if: :path_changed? |