diff options
author | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-06-27 13:05:02 +0200 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2017-06-27 13:05:02 +0200 |
commit | 7c53fcf11fff8a05442ae813c9da76a9ed710abd (patch) | |
tree | 44210af7be69f090e662d19d9ec9a8395ab7110b /lib | |
parent | 397d3fd7d0cd352c94637a26b5ed25c025aa8bf9 (diff) | |
download | gitlab-ce-7c53fcf11fff8a05442ae813c9da76a9ed710abd.tar.gz |
Adjust for new static-analysis failuresbvl-rename-all-reserved-paths-mysql
Diffstat (limited to 'lib')
-rw-r--r-- | lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb index c696c8baf7e..33f8939bc61 100644 --- a/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb +++ b/lib/gitlab/database/rename_reserved_paths_migration/v1/rename_base.rb @@ -37,8 +37,8 @@ module Gitlab def perform_rename(routable, old_full_path, new_full_path) # skips callbacks & validations new_path = new_full_path.split('/').last - routable.class.where(id: routable). - update_all(path: new_path) + routable.class.where(id: routable) + .update_all(path: new_path) rename_routes(old_full_path, new_full_path) end |