module Que::Locks::JSONExtensions
For comparing job args, the JSON serialization of them is used This patches Que
to use a stable json serialization that is independent of the insertion order of keys into hash arguments
Public Instance Methods
serialize_json(object)
click to toggle source
# File lib/que/locks/json_extensions.rb, line 6 def serialize_json(object) JSON.neat_generate(object, sort: true) end