Skip to content

Commit

Permalink
hotfix for :order! and :key_converter => :none
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Schwartz committed Jun 11, 2013
1 parent 7af5a08 commit 79731a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/savon/message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion lib/savon/qualified_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def to_hash(hash, path)
to_hash(value, @types[newpath] ? [@types[newpath]] : newpath)
)
else
add_namespaces_to_values(value, path) if key == :order!
add_namespaces_to_values(value, path) if key == :order! and @key_converter != :none
newhash.merge(key => value)
end
end
Expand Down

0 comments on commit 79731a6

Please sign in to comment.