Skip to content

Commit 11389f2

Browse files
committed
Undo well-intentioned change to URI#query.
1 parent b3a6504 commit 11389f2

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

lib/rdf/model/uri.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1219,13 +1219,7 @@ def query_values=(value)
12191219
return
12201220
end
12211221

1222-
value = if value.respond_to?(:to_h)
1223-
value.to_h
1224-
elsif value.respond_to?(:to_hash)
1225-
value.to_hash
1226-
else
1227-
value
1228-
end
1222+
value = value.to_hash if value.respond_to?(:to_hash)
12291223
self.query = case value
12301224
when Array, Hash
12311225
value.map do |(k,v)|

0 commit comments

Comments
 (0)