Skip to content

Commit ea729ac

Browse files
committed
Fix ruby-head support
1 parent 8adb4ae commit ea729ac

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

lib/global_id/uri/gid.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,5 +173,9 @@ def parse_query_params(query)
173173
end
174174
end
175175

176-
@@schemes['GID'] = GID
176+
if respond_to?(:register_scheme)
177+
register_scheme('GID', GID)
178+
else
179+
@@schemes['GID'] = GID
180+
end
177181
end

0 commit comments

Comments
 (0)