Skip to content

Commit de06ffb

Browse files
committed
compact for multiple belongs_to suppo
1 parent 9b9835b commit de06ffb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/json_api_client/resource.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,7 +321,7 @@ def _set_prefix_path(attrs)
321321
a.set_prefix_path(attrs, route_formatter)
322322
end
323323

324-
paths.join("/")
324+
paths.compact.join("/")
325325
end
326326

327327
def _new_scope

0 commit comments

Comments
 (0)