Skip to content

Commit

Permalink
Fix issue from Sinatra upgrade.
Browse files Browse the repository at this point in the history
  • Loading branch information
stefansundin committed Jun 4, 2017
1 parent 5f4059d commit 92b4ad3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/initializers/05-hash.rb
@@ -1,6 +1,6 @@
class Hash
def to_querystring
self.map { |k,v| "#{k}=#{CGI.escape(v)}" }.join("&")
self.select { |k,v| v.is_a?(String) }.map { |k,v| "#{k}=#{CGI.escape(v)}" }.join("&")
end

def pluck(*keys)
Expand Down

0 comments on commit 92b4ad3

Please sign in to comment.