Skip to content

Commit

Permalink
compact for multiple belongs_to suppo
Browse files Browse the repository at this point in the history
  • Loading branch information
ollizeyen committed Feb 15, 2021
1 parent 9b9835b commit de06ffb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/json_api_client/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit de06ffb

Please sign in to comment.