From 08bfddec48ee1db6ebba01ede3cfc06cdd85ec35 Mon Sep 17 00:00:00 2001 From: Alexander Bach Date: Mon, 8 Jun 2015 11:45:55 +0200 Subject: [PATCH] Remove unused property --- app/services/create_work_package_service.rb | 3 +-- app/services/update_work_package_service.rb | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/app/services/create_work_package_service.rb b/app/services/create_work_package_service.rb index ffc5ba8168..e006cdbaed 100644 --- a/app/services/create_work_package_service.rb +++ b/app/services/create_work_package_service.rb @@ -28,12 +28,11 @@ #++ class CreateWorkPackageService - attr_accessor :user, :send_notifications, :project, :work_package + attr_accessor :user, :project, :work_package def initialize(user:, project:, send_notifications: true) self.user = user self.project = project - self.send_notifications = send_notifications WorkPackageObserver.instance.send_notification = send_notifications end diff --git a/app/services/update_work_package_service.rb b/app/services/update_work_package_service.rb index 8f6993015a..ce2aa1d011 100644 --- a/app/services/update_work_package_service.rb +++ b/app/services/update_work_package_service.rb @@ -28,13 +28,12 @@ #++ class UpdateWorkPackageService - attr_accessor :user, :work_package, :permitted_params, :send_notifications + attr_accessor :user, :work_package, :permitted_params def initialize(user:, work_package:, permitted_params: nil, send_notifications: true) self.user = user self.work_package = work_package self.permitted_params = permitted_params - self.send_notifications = send_notifications JournalObserver.instance.send_notification = send_notifications end