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
This may be some what related to #45, but currently it looks like setting parent_id works for both create and update but permitted_attributes isn't getting nil attributes in order to remove them from what I can see. I can remove an association if I directly pass in parent_id => nil in attributes though.
Wondering if this was the intended way to update a resource to remove an association:
PATCH [http://localhost:4000/api/classifications/3]
This may be some what related to #45, but currently it looks like setting
parent_id
works for both create and update but permitted_attributes isn't getting nil attributes in order to remove them from what I can see. I can remove an association if I directly pass inparent_id => nil
in attributes though.Wondering if this was the intended way to update a resource to remove an association:
PATCH [http://localhost:4000/api/classifications/3]
Phoenix Params:
JaResource attrs passed into permitted_attributes:
Should there be a
"parent_id" => nil
there?Schema:
The text was updated successfully, but these errors were encountered: