From 2274c2ed7d46773a3f1d90f10287126dbd733b9d Mon Sep 17 00:00:00 2001 From: Nahum Wild Date: Sun, 12 Sep 2010 19:01:24 +1200 Subject: [PATCH] correcting the 'url_params_from_hash' method to correctly assemble the url params for inclusion with Rails3 helpers --- lib/gravtastic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gravtastic.rb b/lib/gravtastic.rb index 3cdabd2..479ea63 100644 --- a/lib/gravtastic.rb +++ b/lib/gravtastic.rb @@ -71,7 +71,7 @@ def gravatar_url(options={}) def url_params_from_hash(hash) '?' + hash.map do |key, val| [self.class.gravatar_options[key.to_sym] || key.to_s, CGI::escape(val.to_s) ].join('=') - end.sort.join('&') + end.sort.join('&') end def gravatar_hostname(secure)