module SidekiqUniqueJobs::Normalizer

Normalizes hashes by dumping them to json and loading them from json

@author Mikael Henriksson <mikael@mhenrixon.com>

Public Class Methods

jsonify(args) click to toggle source

Changes hash to a json compatible hash @param [Hash] args @return [Hash] a json compatible hash

# File lib/sidekiq_unique_jobs/normalizer.rb, line 13
def self.jsonify(args)
  load_json(dump_json(args))
end