From 3b799a3d12fef8001b5e9399c2ac5800a148f279 Mon Sep 17 00:00:00 2001 From: ollizeyen Date: Tue, 16 Feb 2021 18:25:16 +0100 Subject: [PATCH] compact for multiple belongs_to suppo --- lib/json_api_client/resource.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/json_api_client/resource.rb b/lib/json_api_client/resource.rb index b0b0110b..8777214c 100644 --- a/lib/json_api_client/resource.rb +++ b/lib/json_api_client/resource.rb @@ -313,7 +313,7 @@ def _prefix_path a.to_prefix_path(route_formatter) end - paths.join("/") + paths.compact.join("/") end def _set_prefix_path(attrs) @@ -321,7 +321,7 @@ def _set_prefix_path(attrs) a.set_prefix_path(attrs, route_formatter) end - paths.join("/") + paths.compact.join("/") end def _new_scope