-
Notifications
You must be signed in to change notification settings - Fork 68
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
exclude_field doesn't work for record attributes #10
Comments
Yes, it's only supposed to work for associations. If you want to do anything to a plain/non-association field, then you should use the field processors like nullify, for example http://rubydoc.info/gems/amoeba/1.2.1/file/README.md#Nullify |
nullify isn't possible for boolean attributes with default value. Is it possible to change 'set' method, to set value to false. Currently, it doesn't work. |
hmm, odd, I don't see why set false wouldn't work, it's not working for you? can you write up a test case in the spec to prove that it fails? |
Yes, but a bit later. |
cool thanks |
any progress on this? |
closing this for now, due to inactivity |
It works only for associations.
One more example:
a is boolean attribute
The text was updated successfully, but these errors were encountered: