Skip to content

Commit

Permalink
Avoid using internal path_query method.
Browse files Browse the repository at this point in the history
  • Loading branch information
kaspth committed Nov 27, 2014
1 parent 0a7120c commit 5abdbb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/global_id/uri/gid.rb
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ def build(args)

def to_s
# Implement #to_s to avoid no implicit conversion of nil into string when path is nil
"gid://#{app}#{path_query}"
"gid://#{app}#{path}#{'?' + query if query}"
end

protected
Expand Down

0 comments on commit 5abdbb2

Please sign in to comment.