Closed alexphys closed 7 years ago
@alexphys just release 0.6.4 which has a fix for this (and tests to make sure it doesn't happen again). Could you confirm that works for you?
Hi @richmolj, This ideed fixed the issue, thank you.
P.S.
A temporary solution I had was to create a ParentOrganizationResource
e.g.
class OrganizationResource < JsonapiCompliable::Resource
type :organizations
...
...
...
belongs_to :parent,
foreign_key: :parent_id,
scope: -> { Organization.all },
resource: ParentOrganizationResource
end
class ParentOrganizationResource < JsonapiCompliable::Resource
type :organizations
use_adapter JsonapiCompliable::Adapters::ActiveRecord
end
I have the following self association:
My controller has the following;
While this is working for older versions of suite and combliable (0.5.4, 0.5.7), I get the following error in the latest ones (0.6.1, 0.6.2);
Im on ruby v 2.3.0 and rails 4.1.7
Anu suggestions?