Skip to content

Commit

Permalink
#4 - Substituido &. por try - pois as versões do ruby que são inferio…
Browse files Browse the repository at this point in the history
…res a 2.3 não funcionam o &.
  • Loading branch information
Brunomm committed Dec 27, 2016
1 parent a267f1d commit 8f2d528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/br_nfe/product/response/build/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def doc_original_xml
# # <b>Type: </b> _Nokogiri::XML::Document_
#
def response_xml
@response_xml ||= parse_nokogiri_xml(savon_response&.xml)
@response_xml ||= parse_nokogiri_xml(savon_response.try(:xml))
end

private
Expand Down

0 comments on commit 8f2d528

Please sign in to comment.