Class: EncodingSafeProcessJob

Inherits:
Object
  • Object
show all
Defined in:
lib/encoding_safe_process_job.rb

Overview

Process Job to resolve encoding issue

Class Method Summary collapse

Class Method Details

.perform(content) ⇒ Object

Resque perform method



7
8
9
10
11
# File 'lib/encoding_safe_process_job.rb', line 7

def self.perform(content)
  clazz = const_get(content["processing_queue"])
  content["body"] = Base64.decode64(content["body"])
  clazz.perform(content)
end