Remove unused property

pull/3125/head
Alexander Bach 10 years ago committed by Jens Ulferts
parent c88cb306dd
commit 08bfddec48
  1. 3
      app/services/create_work_package_service.rb
  2. 3
      app/services/update_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

@ -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

Loading…
Cancel
Save