Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make to_query safe against nils

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6039 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 92af8014652c7e28fa5a26682e81b974b9dbfaef 1 parent 3543385
@dhh dhh authored
View
2  activesupport/lib/active_support/core_ext/hash/conversions.rb
@@ -9,7 +9,7 @@ def to_param #:nodoc:
end
def to_query(key) #:nodoc:
- "#{key}=#{CGI.escape(to_param)}"
+ "#{key}=#{CGI.escape(to_param || "")}"
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.