Module: GravatarImageTag::ClassMethods

Defined in:
lib/gravatar_image_tag.rb

Instance Method Summary collapse

Instance Method Details

#default_gravatar_filetype=(value) ⇒ Object



31
32
33
34
35
36
# File 'lib/gravatar_image_tag.rb', line 31

def default_gravatar_filetype=(value)
  warn "DEPRECATION WARNING: configuration of filetype= through this method is deprecated! Use the block configuration instead. http://github.com/mdeering/gravatar_image_tag"
  GravatarImageTag.configure do |c|
    c.filetype = value
  end
end

#default_gravatar_image=(value) ⇒ Object



37
38
39
40
41
42
# File 'lib/gravatar_image_tag.rb', line 37

def default_gravatar_image=(value)
  warn "DEPRECATION WARNING: configuration of default_gravatar_image= through this method is deprecated! Use the block configuration instead. http://github.com/mdeering/gravatar_image_tag"
  GravatarImageTag.configure do |c|
    c.default_image = value
  end
end

#default_gravatar_rating=(value) ⇒ Object



43
44
45
46
47
48
# File 'lib/gravatar_image_tag.rb', line 43

def default_gravatar_rating=(value)
  warn "DEPRECATION WARNING: configuration of default_gravatar_rating= through this method is deprecated! Use the block configuration instead. http://github.com/mdeering/gravatar_image_tag"
  GravatarImageTag.configure do |c|
    c.rating = value
  end
end

#default_gravatar_size=(value) ⇒ Object



49
50
51
52
53
54
# File 'lib/gravatar_image_tag.rb', line 49

def default_gravatar_size=(value)
  warn "DEPRECATION WARNING: configuration of default_gravatar_size= through this method is deprecated! Use the block configuration instead. http://github.com/mdeering/gravatar_image_tag"
  GravatarImageTag.configure do |c|
    c.size = value
  end
end

#secure_gravatar=(value) ⇒ Object



55
56
57
58
59
60
# File 'lib/gravatar_image_tag.rb', line 55

def secure_gravatar=(value)
  warn "DEPRECATION WARNING: configuration of secure_gravatar= through this method is deprecated! Use the block configuration instead. http://github.com/mdeering/gravatar_image_tag"
  GravatarImageTag.configure do |c|
    c.secure = value
  end
end