lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.100.0 vs lib/active_merchant/billing/gateways/safe_charge.rb in activemerchant-1.101.0

- old
+ new

@@ -243,12 +243,10 @@ "#{key}=#{CGI.escape(value.to_s)}" end.compact.join('&') end def error_code_from(response) - unless success_from(response) - response[:ex_err_code] || response[:err_code] - end + response[:ex_err_code] || response[:err_code] unless success_from(response) end def underscore(camel_cased_word) camel_cased_word.to_s.gsub(/::/, '/'). gsub(/([A-Z]+)([A-Z][a-z])/, '\1_\2').