Class: WorkItems::Callbacks::StartAndDueDate

Inherits:
Base show all
Includes:
Gitlab::Utils::StrongMemoize
Defined in:
app/services/work_items/callbacks/start_and_due_date.rb

Constant Summary collapse

ALLOWED_PARAMS =

Required for the Legacy Issues

[:due_date, :start_date].freeze

Constants inherited from Issuable::Callbacks::Base

Issuable::Callbacks::Base::Error

Instance Method Summary collapse

Methods inherited from Base

#log_error, #raise_error

Methods inherited from Issuable::Callbacks::Base

#after_create, #after_initialize, #after_save, #after_save_commit, #after_update, #after_update_commit, execute_without_params?, #initialize

Methods included from Gitlab::Allowable

#can?, #can_all?, #can_any?

Constructor Details

This class inherits a constructor from Issuable::Callbacks::Base

Instance Method Details

#before_createObject



15
16
17
# File 'app/services/work_items/callbacks/start_and_due_date.rb', line 15

def before_create
  assign_attributes
end

#before_updateObject



11
12
13
# File 'app/services/work_items/callbacks/start_and_due_date.rb', line 11

def before_update
  assign_attributes
end