-
Notifications
You must be signed in to change notification settings - Fork 16
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
Fail early when one defines an attribute that overlaps with any method in Attributor::Model #111
Comments
yes, we do have that issue in general (as #99 sort of states). We might be able to get rid of that method or rename (i.e., |
It would be nice to have a fix that is not for 'attributes' only but for any method that may overlap with a defined attribute (any method that is defined on a model instance). |
Duplicate of #71, as that's really how we should end up fixing this. |
In the example below attribute ":attributes" overlaps with pre existing method "attributes" defined in Attributor::Model.
This compiles and runs. And you do not see any obvious issues until you try to load and validate your attributor model instance where it fails with a weird error:
It would be nice to fail earlier (ideally in the model definition) or at least to have a better error message.
The text was updated successfully, but these errors were encountered: