The AR api describes the attributes method as a means to override serialization attributes, etc.
The proposed fix makes it trivial to inject new attributes to a model, while not doing any dirty hacks to the method_missing. All specs pass.
The AR api describes the attributes method as a means to override serialization attributes, etc.
The proposed fix makes it trivial to inject new attributes to a model, while not doing any dirty hacks to the method_missing. All specs pass.