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