Skip to content

Commit

Permalink
Undo well-intentioned change to URI#query.
Browse files Browse the repository at this point in the history
  • Loading branch information
gkellogg committed Dec 30, 2016
1 parent b3a6504 commit 11389f2
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/rdf/model/uri.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1219,13 +1219,7 @@ def query_values=(value)
return
end

value = if value.respond_to?(:to_h)
value.to_h
elsif value.respond_to?(:to_hash)
value.to_hash
else
value
end
value = value.to_hash if value.respond_to?(:to_hash)
self.query = case value
when Array, Hash
value.map do |(k,v)|
Expand Down

0 comments on commit 11389f2

Please sign in to comment.