Sha256: caefbea1caa877f5f0636ba7ca8d21843f478c4ac547ddcd7f184c748fe7470d

Contents?: true

Size: 307 Bytes

Versions: 57

Compression:

Stored size: 307 Bytes

Contents

module ConstructorCore
  module ApplicationHelper
    def gravatar_icon(user_email = '', size = 40)
      gravatar_url = 'http://www.gravatar.com/avatar/%{hash}?s=%{size}&d=mm'
      user_email.strip!
      sprintf gravatar_url, hash: Digest::MD5.hexdigest(user_email.downcase), size: size
    end
  end
end

Version data entries

57 entries across 57 versions & 3 rubygems

Version Path
constructor-core-0.9.1 app/helpers/constructor_core/application_helper.rb
constructor-core-0.9.0 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.19 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.18 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.17 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.16 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.15 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.14 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.13 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.12 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.11 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.10 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.8 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.7 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.6 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.5 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.4 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.3 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.2 app/helpers/constructor_core/application_helper.rb
constructor-core-0.8.1 app/helpers/constructor_core/application_helper.rb