The "Validation Errors" section of the readme says that create returns a falsey value on errors:
User.create(name: "Bob", email_address: "invalid email")
# => false
This is incorrect: create actually returns the set of attributes regardless of success status. This code comment above the create method is correct:
|
# @return [Resource] The instance you tried to create. You will have to check the persisted state or errors on this object to see success/failure. |
The "Validation Errors" section of the readme says that
createreturns a falsey value on errors:This is incorrect:
createactually returns the set of attributes regardless of success status. This code comment above thecreatemethod is correct:json_api_client/lib/json_api_client/resource.rb
Line 168 in 9b9835b