Skip to content

Commit 08b91ee

Browse files
hashrocketeermarybethleegreis
committed
Do not clear relationships on destroy
Co-authored-by: Mary Lee <mary.lee@hashrocket.com> Co-authored-by: Gabriel Reis <gabriel@hashrocket.com>
1 parent 387c6b0 commit 08b91ee

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

lib/json_api_client/resource.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -463,7 +463,6 @@ def destroy
463463
false
464464
else
465465
mark_as_destroyed!
466-
self.relationships.attributes.clear
467466
self.relationships.last_result_set = nil
468467
_clear_cached_relationships
469468
true

0 commit comments

Comments
 (0)