You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Is there some library I should import?
Thanks
The text was updated successfully, but these errors were encountered:
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
The text was updated successfully, but these errors were encountered: