Sha256: bc2770f1b2c3813cc27497469315ab7dec3cade4dbba9db3491de4d4d6722e68

Contents?: true

Size: 275 Bytes

Versions: 17

Compression:

Stored size: 275 Bytes

Contents

module Faalis
  module Concerns::User::Gravatar
    def gravatar
      require 'digest/md5'
      hash = Digest::MD5.hexdigest(email.downcase)

      # compile URL which can be used in <img src="RIGHT_HERE"...
      "http://www.gravatar.com/avatar/#{hash}"
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
faalis-2.2.0.pre.rc1 app/models/faalis/concerns/user/gravatar.rb
faalis-2.2.1 app/models/faalis/concerns/user/gravatar.rb
faalis-2.2.0 app/models/faalis/concerns/user/gravatar.rb
faalis-2.1.1 app/models/faalis/concerns/user/gravatar.rb
faalis-2.1.0 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.8 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.7 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.5 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.4 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.3 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.1 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.0 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.0.rc6 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.0.rc5 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.0.rc4 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.0.rc3 app/models/faalis/concerns/user/gravatar.rb
faalis-2.0.0.rc2 app/models/faalis/concerns/user/gravatar.rb