module Api::V2
class TokenResource < RecognitionResource
self.model = Recognitions::Token
self.type = "text"
end
I should add they don't use ActiveRecord models but instead plain ruby objects (with attr_accessors in place for every attribute).
Now, if I move the attributes and association to the child resource this works fine. But if I leave them in the parent resource it renders no attributes and the association is not loaded.
I have the following Resource:
From which this resource inherits:
I should add they don't use ActiveRecord models but instead plain ruby objects (with
attr_accessors
in place for every attribute). Now, if I move the attributes and association to the child resource this works fine. But if I leave them in the parent resource it renders no attributes and the association is not loaded.Is there some library I should import? Thanks