Sha256: c041e96807743fe3d08372ff04211fdfcf00ed71bb15d66597c5ae11c903ea71

Contents?: true

Size: 310 Bytes

Versions: 51

Compression:

Stored size: 310 Bytes

Contents

# Process Job to resolve encoding issue
class EncodingSafeProcessJob

  @queue = :encoding_safe_process_job

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



Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
cobweb-0.0.66 lib/encoding_safe_process_job.rb
cobweb-0.0.65 lib/encoding_safe_process_job.rb
cobweb-0.0.64 lib/encoding_safe_process_job.rb
cobweb-0.0.63 lib/encoding_safe_process_job.rb
cobweb-0.0.62 lib/encoding_safe_process_job.rb
cobweb-0.0.61 lib/encoding_safe_process_job.rb
cobweb-0.0.60 lib/encoding_safe_process_job.rb
cobweb-0.0.59 lib/encoding_safe_process_job.rb
cobweb-0.0.58 lib/encoding_safe_process_job.rb
cobweb-0.0.57 lib/encoding_safe_process_job.rb
cobweb-0.0.55 lib/encoding_safe_process_job.rb