app/lib/katello/util/data.rb in katello-3.6.0.1.rc2 vs app/lib/katello/util/data.rb in katello-3.7.0.rc1

- old
+ new

@@ -3,13 +3,11 @@ module Data def self.array_with_indifferent_access(variable) variable.map { |x| x.with_indifferent_access } end - def self.md5hash(string) - md5 = Digest::MD5.new - md5.update(string) - md5.hexdigest + def self.hexdigest(string) + defined?(ActiveSupport::Digest) ? ActiveSupport::Digest.hexdigest(string) : Digest::MD5.hexdigest(string) end def self.ostructize(obj, options = {}) options[:prefix_keys] ||= [] options[:prefix] ||= '_'