Sha256: fb1ab8bdde16731e62327128964ddb192e3f18b30fda05a2b2108b87781b00bd
Contents?: true
Size: 456 Bytes
Versions: 3
Compression:
Stored size: 456 Bytes
Contents
# frozen_string_literal: true # This can be removed when we only support Rails 7.1+ because Rails 7.1 add a serialization # option for unsafe YAML loads module Delayed module JobGroups module YamlLoader def self.load(yaml) return yaml unless yaml.is_a?(String) && /^---/.match(yaml) YAML.load_dj(yaml) end def self.dump(object) return if object.nil? YAML.dump(object) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems