lib/money_s3/builders/konfigurace.rb in money_s3-0.12.0 vs lib/money_s3/builders/konfigurace.rb in money_s3-1.0.0

- old
+ new

@@ -4,11 +4,11 @@ include ParserCore::BaseBuilder include Groups::Konfigurace def builder root = Ox::Element.new(name) - if data.respond_to? :attributes - data.attributes.each { |k, v| root[k] = v } + if data.key? :attributes + data[:attributes].each { |k, v| root[k] = v } end mega.each do |r| r.nodes.each { |n| root << n } end \ No newline at end of file