class Icasework::XMLConverter

A patched version of ActiveSupport's XML converter which includes XML tag attributes

Credit: stackoverflow.com/a/29431089

Private Instance Methods

become_content?(value) click to toggle source
# File lib/icasework/xml_converter.rb, line 15
def become_content?(value)
  value['type'] == 'file' ||
    (value['__content__'] &&
     (value.keys.size == 1 && value['__content__'].present?))
end