Changeset [3313c7b3cbe554c671ff6fd9b624876db90af066] by renoke
Revision 3313c7b3cbe554c671ff6fd9b624876db90af066,
committed by renoke
· September 5th, 2009 @ 04:22 PM
Dynamic Attribute. Need to overwrite 'attributes=' method since
ActiveRecord
check with respond_to? if the attribute setter exist before
allocating value.
Consequently that the method_missing pattern is not enough when
ActiveRecord
sets value, but still works when it gets value.
http://github.com/zena/zena/commit/3313c7b3cbe554c671ff6fd9b624876d...
2 changed files
-
M
test/unit/dyn_attributes_test.rb -
M
vendor/plugins/dyn_attributes/lib/dyn_attributes.rb