Class: Polivalente::CleanTrashJob

Inherits:
ApplicationJob show all
Defined in:
app/jobs/polivalente/clean_trash_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(trash) ⇒ Object

Delete the parent record and then remove the trash item



6
7
8
# File 'app/jobs/polivalente/clean_trash_job.rb', line 6

def perform(trash)
  trash.destroy
end