Module: FastDestroyAll::Helpers

Extended by:
ActiveSupport::Concern
Includes:
AfterCommitQueue
Included in:
Ci::Pipeline, Environment, Project, WithUploads
Defined in:
app/models/concerns/fast_destroy_all.rb

Instance Method Summary collapse

Methods included from AfterCommitQueue

#run_after_commit, #run_after_commit_or_now

Instance Method Details

#perform_fast_destroy(subject) ⇒ Object



86
87
88
89
90
91
92
# File 'app/models/concerns/fast_destroy_all.rb', line 86

def perform_fast_destroy(subject)
  params = subject.begin_fast_destroy

  run_after_commit do
    subject.finalize_fast_destroy(params)
  end
end