Class: Kithe::AssetDeleteJob

Inherits:
Job
  • Object
show all
Defined in:
app/jobs/kithe/asset_delete_job.rb

Instance Method Summary collapse

Instance Method Details

#perform(attacher_class, data) ⇒ Object



3
4
5
6
7
8
# File 'app/jobs/kithe/asset_delete_job.rb', line 3

def perform(attacher_class, data)
  attacher_class = Object.const_get(attacher_class)

  attacher = attacher_class.from_data(data)
  attacher.destroy
end