Class: Issuable::DestroyService

Inherits:
IssuableBaseService show all
Defined in:
app/services/issuable/destroy_service.rb

Direct Known Subclasses

WorkItems::DeleteService

Instance Attribute Summary

Attributes inherited from BaseProjectService

#project

Attributes inherited from BaseContainerService

#container, #current_user, #params

Instance Method Summary collapse

Methods inherited from BaseProjectService

#initialize

Methods included from Gitlab::Utils::StrongMemoize

#clear_memoization, #strong_memoize, #strong_memoized?

Methods inherited from BaseContainerService

#group_container?, #initialize, #namespace_container?, #project_container?

Methods included from BaseServiceUtility

#deny_visibility_level, #event_service, #log_error, #log_info, #notification_service, #system_hook_service, #todo_service, #visibility_level

Methods included from Gitlab::Allowable

#can?

Instance Method Details

#execute(issuable) ⇒ Object


5
6
7
# File 'app/services/issuable/destroy_service.rb', line 5

def execute(issuable)
  after_destroy(issuable) if issuable.destroy
end