Sha256: 54add217bdeff6c0c1693f7d757c5d23816bcb57763bbd685516ee2f1d70e795

Contents?: true

Size: 206 Bytes

Versions: 39

Compression:

Stored size: 206 Bytes

Contents

module GravatarHelper
  def gravatar_url(<%= name %>, size)
    gravatar_id = Digest::MD5::hexdigest(<%= name %>.email).downcase
    "http://gravatar.com/avatar/#{gravatar_id}.png?s=#{size}&d=mm"
  end
end

Version data entries

39 entries across 39 versions & 1 rubygems

Version Path
bootswatch_rails-3.3.7.8 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.7 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.6 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.5 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.4 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.3 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.2 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.1 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.7.0 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.6.2 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.6.1 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.5.2 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.5.1 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.4.1 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.2.1 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.1.2 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.1.1 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.1.0 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.0.11 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb
bootswatch_rails-3.3.0.10 lib/generators/bootswatch_rails/sorcery/templates/gravatar_helper.rb