lib/seam/resources/resource_errors_support.rb in seamapi-1.1.1 vs lib/seam/resources/resource_errors_support.rb in seamapi-1.2.0

- old
+ new

@@ -1,9 +1,9 @@ # frozen_string_literal: true module Seam module ResourceErrorsSupport def errors - @errors ||= @data["errors"].is_a?(Array) ? Seam::ResourceError.load_from_response(@data["errors"]) : [] + @errors_converted ||= @errors.is_a?(Array) ? Seam::ResourceError.load_from_response(@errors) : [] end end end