From adfdc046ac45313a2ef51db3872996b4de995a98 Mon Sep 17 00:00:00 2001 From: Arturo Guzman Date: Mon, 10 Jun 2013 14:55:10 -0400 Subject: [PATCH] set qualified message key converter --- lib/savon/message.rb | 2 +- lib/savon/qualified_message.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/savon/message.rb b/lib/savon/message.rb index 934a4ef7..4d428617 100644 --- a/lib/savon/message.rb +++ b/lib/savon/message.rb @@ -22,7 +22,7 @@ def to_s translated_operation_name = Gyoku.xml_tag(@operation_name, :key_converter => @key_converter).to_s # XXX: there is no `@request_key_converter` instance variable! # the third argument is therefore always `nil`. [dh, 2013-03-09] - @message = QualifiedMessage.new(@types, @used_namespaces, @request_key_converter).to_hash(@message, [translated_operation_name]) + @message = QualifiedMessage.new(@types, @used_namespaces, @key_converter).to_hash(@message, [translated_operation_name]) end gyoku_options = { diff --git a/lib/savon/qualified_message.rb b/lib/savon/qualified_message.rb index d7a21643..a8124811 100644 --- a/lib/savon/qualified_message.rb +++ b/lib/savon/qualified_message.rb @@ -25,7 +25,7 @@ def to_hash(hash, path) ) else add_namespaces_to_values(value, path) if key == :order! - newhash.merge(key => value) + newhash.merge(translated_key => value) end end end