Open diegoeche opened 7 years ago
@diegoeche The relationships are updated in separate methods from replace_field
, such as replace_to_many_links
. Let me know if you are still having trouble and I'll see if I can make some time to test with Redis.
Thanks for your reply!
So I tried using replace_field
but field_data
had has_one
empty. Also I'm using 0.8.1
Ok, I'll try setup a simple app using Redis. Might be a day or two.
I guess more of a question.
I have this legacy app we are trying to slowly migrate to use jsonapi-resources. We have some bloated models we are splitting into smaller resources but also some models that point to Redis-backed models.
The problem though, is that somehow the relationship data is getting lost before reaching the Resource methods like:
#replace_field(field_data)
.All that info is available when I use an ActiveRecord model that uses the
#belongs_to
helper. But unsure what do I need to do/implement in my models to get the relationship assignment working.