Closed crismali closed 10 years ago
:+1:
I generally don't think overriding getters and setters is a good idea, but, because ActiveRecord
already supports this for native (non-hstore) fields I think we can do it here. However, you should probably consider the need for the use of super
in a setter to be a smell.
@thegrubbsian you are probably right, but in the case of an array that comes with the empty element already from default rails behaviour, what would be the proposal to fix that?
You can extend the getters and setters like this now: