Skip to content

Commit

Permalink
Preserve false values in hashes.
Browse files Browse the repository at this point in the history
This was fixed in savonrb#321, commit
aa3ae5d however it snuck
back into the code. This fixes it again.
  • Loading branch information
gregretkowski committed Aug 22, 2014
1 parent 6019a73 commit dd9b4c1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/savon/qualified_message.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def initialize(types, used_namespaces, key_converter)
end

def to_hash(hash, path)
return unless hash
return hash unless hash
return hash.map { |value| to_hash(value, path) } if hash.kind_of?(Array)
return hash.to_s unless hash.kind_of? Hash

Expand Down

0 comments on commit dd9b4c1

Please sign in to comment.