Class: DelayedPaperclipJob
- Inherits:
-
Struct
- Object
- Struct
- DelayedPaperclipJob
- Defined in:
- lib/delayed/jobs/delayed_paperclip_job.rb
Instance Attribute Summary collapse
-
#attachment_name ⇒ Object
Returns the value of attribute attachment_name.
-
#instance_id ⇒ Object
Returns the value of attribute instance_id.
-
#instance_klass ⇒ Object
Returns the value of attribute instance_klass.
Instance Method Summary collapse
Instance Attribute Details
#attachment_name ⇒ Object
Returns the value of attribute attachment_name
1 2 3 |
# File 'lib/delayed/jobs/delayed_paperclip_job.rb', line 1 def end |
#instance_id ⇒ Object
Returns the value of attribute instance_id
1 2 3 |
# File 'lib/delayed/jobs/delayed_paperclip_job.rb', line 1 def instance_id @instance_id end |
#instance_klass ⇒ Object
Returns the value of attribute instance_klass
1 2 3 |
# File 'lib/delayed/jobs/delayed_paperclip_job.rb', line 1 def instance_klass @instance_klass end |
Instance Method Details
#perform ⇒ Object
2 3 4 5 6 |
# File 'lib/delayed/jobs/delayed_paperclip_job.rb', line 2 def perform instance = instance_klass.constantize.find(instance_id) instance.send().reprocess! end |