We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9b9835b commit 3b799a3Copy full SHA for 3b799a3
lib/json_api_client/resource.rb
@@ -313,15 +313,15 @@ def _prefix_path
313
a.to_prefix_path(route_formatter)
314
end
315
316
- paths.join("/")
+ paths.compact.join("/")
317
318
319
def _set_prefix_path(attrs)
320
paths = _belongs_to_associations.map do |a|
321
a.set_prefix_path(attrs, route_formatter)
322
323
324
325
326
327
def _new_scope
0 commit comments