Sha256: 8e9f2c0ec9143e4990d3e01d18bbb94e20757258990b630b9b2a08f741aa3899

Contents?: true

Size: 383 Bytes

Versions: 7

Compression:

Stored size: 383 Bytes

Contents

module Moysklad::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

7 entries across 7 versions & 1 rubygems

Version Path
moysklad-0.2.1 lib/moysklad/entities/xml_fix.rb
moysklad-0.2.0 lib/moysklad/entities/xml_fix.rb
moysklad-0.1.5 lib/moysklad/entities/xml_fix.rb
moysklad-0.1.4 lib/moysklad/entities/xml_fix.rb
moysklad-0.1.3 lib/moysklad/entities/xml_fix.rb
moysklad-0.1.2 lib/moysklad/entities/xml_fix.rb
moysklad-0.1.1 lib/moysklad/entities/xml_fix.rb