<p>In app/helpers/user_helper.rb:</p>
<pre style='color:#555'>> @@ -29,4 +45,19 @@ def openid_button(name, url)
> :title => t("user.login.openid_providers.#{name}.title")
> )
> end
> +
> + # Gravatar support
> +
> + # See http://en.gravatar.com/site/implement/images/ for details.
> + def user_gravatar_url(user, options = {})
> + options = {:size => 80}.merge! options
</pre>
<p>Sure, but I assumed at that point we would probably completely refactor how we handled the sizes, and quite likely then we wouldn't have a default here at all as it would always be specified which size we wanted.</p>
<p>Even if we were going to keep it here a simple <code>size = options[:size] || 80</code> would make more sense than merging an array which we're only ever going to use one option from.</p>
<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">
—<br>
Reply to this email directly or <a href='https://github.com/openstreetmap/openstreetmap-website/pull/131/files#r1855169'>view it on GitHub</a>.
</p>
<img src='https://github.com/notifications/beacon/J6T91GIPIyhU-8ti4GCGP98_UZTRAhtyIjAjorWDZ_kz5PgHI_Ux2MVRf-7XO2WM.gif' height='1' width='1'>