diff options
author | Andreas Brandl <abrandl@gitlab.com> | 2019-07-27 17:59:35 +0300 |
---|---|---|
committer | Andreas Brandl <abrandl@gitlab.com> | 2019-07-29 13:47:06 +0300 |
commit | b9af5066eaadda217224ba2037db72bfc9ee440c (patch) | |
tree | 0a0a03254d143c41e9742272bcc965e7f12a9b25 /app/services/projects/move_notification_settings_service.rb | |
parent | 988dc80585c6e52970e94f22dff6bc1e4c786e9e (diff) |
Refactor and remove #prepare_relation method
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/65054
Diffstat (limited to 'app/services/projects/move_notification_settings_service.rb')
-rw-r--r-- | app/services/projects/move_notification_settings_service.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/services/projects/move_notification_settings_service.rb b/app/services/projects/move_notification_settings_service.rb index e740c44bd26..65a888fe26b 100644 --- a/app/services/projects/move_notification_settings_service.rb +++ b/app/services/projects/move_notification_settings_service.rb @@ -16,8 +16,7 @@ module Projects private def move_notification_settings - prepare_relation(non_existent_notifications) - .update_all(source_id: @project.id) + non_existent_notifications.update_all(source_id: @project.id) end # Remove remaining notification settings from source_project |