Sha256: 040c9d760cfb300bee207a13355f6ef0f79670702f28ef1a80cac209cca8faf5
Contents?: true
Size: 500 Bytes
Versions: 5
Compression:
Stored size: 500 Bytes
Contents
# frozen_string_literal: true require 'active_support/core_ext/hash/conversions' module Icasework ## # A patched version of ActiveSupport's XML converter which includes XML tag # attributes # # Credit: https://stackoverflow.com/a/29431089 # class XMLConverter < ActiveSupport::XMLConverter private def become_content?(value) value['type'] == 'file' || (value['__content__'] && (value.keys.size == 1 && value['__content__'].present?)) end end end
Version data entries
5 entries across 5 versions & 1 rubygems