Sha256: 80c96d618a8c80fa426499340c22cfd5daaae71a21e33563bf3e149a95f2c1ec

Contents?: true

Size: 380 Bytes

Versions: 1

Compression:

Stored size: 380 Bytes

Contents

module AmoCRM::Entities::XmlFix
  extend ::ActiveSupport::Concern

  def to_xml builder = nil,default_namespace = nil,tag_from_parent = nil
    unless builder
      builder = Nokogiri::XML::Builder.new(encoding: 'utf-8')
      write_out_to_xml = true
    end

    result = super builder, default_namespace, tag_from_parent

    write_out_to_xml ? result.to_xml : result
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
amo_crm-0.2.2 lib/amo_crm/entities/xml_fix.rb