Skip to content

Commit

Permalink
support for nil input (Body)
Browse files Browse the repository at this point in the history
  • Loading branch information
zenchild committed Jan 26, 2011
1 parent 3390f17 commit 98655c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/savon/soap/xml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def xml
def to_xml
@xml ||= tag(builder, :Envelope, complete_namespaces) do |xml|
tag(xml, :Header) { xml << header_for_xml } unless header_for_xml.empty?
tag(xml, :Body) { xml.tag!(*input) { xml << body_to_xml } }
input.nil? ? tag(xml, :Body) : tag(xml, :Body) { xml.tag!(*input) { xml << body_to_xml } }
end
end

Expand Down

0 comments on commit 98655c0

Please sign in to comment.