Module: SimpleAvatar::AvatarHelper
- Defined in:
- lib/avatar_helper.rb
Instance Method Summary collapse
Instance Method Details
#avatar_for(resource, size) ⇒ Object
3 4 5 |
# File 'lib/avatar_helper.rb', line 3 def avatar_for(resource, size) content_tag(:div, content_tag(:div, resource.initials, class: "initials"), class: "avatar #{size}") end |