Module: LetterAvatar::HasAvatar
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/letter_avatar/has_avatar.rb
Instance Method Summary collapse
Instance Method Details
#avatar_path(size = 200) ⇒ Object
5 6 7 |
# File 'lib/letter_avatar/has_avatar.rb', line 5 def avatar_path size=200 LetterAvatar.generate(name, size) end |
#avatar_url(size = 200) ⇒ Object
9 10 11 |
# File 'lib/letter_avatar/has_avatar.rb', line 9 def avatar_url size=200 avatar_path(size).gsub(/public/,'') end |