Skip to content

Commit

Permalink
Merge 81e5299 into c65eb6f
Browse files Browse the repository at this point in the history
  • Loading branch information
shekibobo committed Nov 21, 2018
2 parents c65eb6f + 81e5299 commit 62ef9f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/flexirest/json_api_proxy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def parse(body, object)

# Retrieve the resource(s) object or array from the data object
records = body['data']
return records unless records.present?
return body['errors'] unless records.present?

# Convert the resource object to an array,
# because it is easier to work with an array than a single object
Expand Down

0 comments on commit 62ef9f8

Please sign in to comment.