def gravatar_attrs(email, *params)
      url_options = Gravatarify::Utils.merge_gravatar_options(*params)
      options = url_options[:html] || {}
      options[:src] = gravatar_url(email, false, url_options)
      options[:width] = options[:height] = (url_options[:size] || 80) # customize size    
      { :alt => '' }.merge!(options) # to ensure validity merge with :alt => ''!
    end
def gravatar_attrs(email, *params)
      url_options = Gravatarify::Utils.merge_gravatar_options(*params)
      options = url_options[:html] || {}
      options[:src] = gravatar_url(email, false, url_options)
      options[:width] = options[:height] = (url_options[:size] || 80) # customize size    
      { :alt => '' }.merge!(options) # to ensure validity merge with :alt => ''!
    end
Helper method for HAML to return a neat hash to be used as attributes in an image tag.

 Now it's as simple as doing something like:

    %img{ gravatar_attrs(@user.mail, :size => 20) }/

 This is also the base method for +gravatar_tag+.

 @param [String, #email, #mail, #gravatar_url] email a string or an object used
        to generate to gravatar url for.
 @param [Symbol, Hash] *params other gravatar or html options for building the resulting
        hash.
 @return [Hash] all html attributes required to build an +img+ tag.