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

raise RuntimeError for not allowed model properties #199

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

csgui
Copy link
Member

@csgui csgui commented Jan 25, 2016

As stated by issue #198, a model property named properties is not correctly handled by couchrest_model.

In This line, properties from model is clashing with properties from the object itself. The fix is not straightforward and for now I'm proposing an exception guard.

This PR raises an RuntimeError in an attempt of use properties as a model property.

@aghyad
Copy link

aghyad commented Jan 26, 2016

Thank you @csgui for providing a visible exception.
+1

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.

2 participants