tainbox
tainbox copied to clipboard
default option fix
fix #19
-
writer: false
removes any opportunity to actuallywrite
anything to the attribute. So with this option enabled you must override reader to simulate attribute. Private writer combined with excluding private writers from mass-assignment will solve the problem without having to simulate the attribute behaviour. In any casedefault:
setting should work withwriter: false
. -
reader: false
disables any way toread
the attribute. Why anyone would use it? What if I want to read it inside the instance? To make mass-assignment work with a pseudo-attribute which will set other attributes we can just make the reader private. We will have a reader inside an instance and with the proposed changes it will not show up in theattributes
.