Class: ResquePaperclipJob

Inherits:
Object
  • Object
show all
Defined in:
lib/delayed/jobs/resque_paperclip_job.rb

Class Method Summary collapse

Class Method Details

.perform(instance_klass, instance_id, attachment_name) ⇒ Object



4
5
6
7
8
# File 'lib/delayed/jobs/resque_paperclip_job.rb', line 4

def self.perform(instance_klass, instance_id, attachment_name)
  instance = instance_klass.constantize.find(instance_id)

  instance.send(attachment_name).reprocess!    
end