lib/rapidash/response_error.rb in rapidash-0.3.0.beta vs lib/rapidash/response_error.rb in rapidash-0.3.0.beta2

- old
+ new

@@ -53,15 +53,13 @@ @body = response[:body] @status = response[:status].to_i @method = response[:method].to_s.upcase @url = response[:url] - super(message) + super end - private - - def message + def to_s msg = "#{status} #{method} #{url}" if respond_to?(:errors) && !(errors.blank?) errors.map(&:to_s).join(', ') if errors.kind_of?(Array) msg = "#{msg} | Errors: #{errors.to_s}"