class ActiveSupport::Digest
def hash_digest_class=(klass)
def hash_digest_class=(klass) raise ArgumentError, "#{klass} is expected to implement hexdigest class method" unless klass.respond_to?(:hexdigest) @hash_digest_class = klass end
def hash_digest_class=(klass) raise ArgumentError, "#{klass} is expected to implement hexdigest class method" unless klass.respond_to?(:hexdigest) @hash_digest_class = klass end