Class: Cas::Images::DeleteJob
- Inherits:
-
Object
- Object
- Cas::Images::DeleteJob
- Includes:
- Sidekiq::Worker
- Defined in:
- app/jobs/cas/images/delete_job.rb
Instance Method Summary collapse
Instance Method Details
#perform(attacher_class, data) ⇒ Object
6 7 8 9 10 11 |
# File 'app/jobs/cas/images/delete_job.rb', line 6 def perform(attacher_class, data) attacher_class = Object.const_get(attacher_class) attacher = attacher_class.from_data(data) attacher.destroy end |