Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding error for bad nested attribute arguments #395

Merged

Conversation

no-reply
Copy link
Contributor

Sending a bad argument to Rdf::Resource#attributes= previously failed
silently. This is a problem, since it makes modeling errors invisible to
nested attributes setters, leading to missing data. Other Rails nested
attributes seem to throw an ArgumentError. This PR mimics that behavior
and message.

Closes #393.

Sending a bad argument to Rdf::Resource#attributes= previously failed
silently. This is a problem, since it makes modeling errors invisible to
nested attributes setters, leading to missing data. Other Rails nested
attributes seem to throw an ArgumentError. This PR mimics that behavior
and message.

Closes samvera#393.
jcoyne added a commit that referenced this pull request Apr 11, 2014
…nt-errors

Adding error for bad nested attribute arguments
@jcoyne jcoyne merged commit 109fd5b into samvera:master Apr 11, 2014
@no-reply no-reply deleted the feature/nested-attribute-argument-errors branch April 11, 2014 19:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Setting non-existent attributes with RDF nested attributes fails silently
2 participants