Module: Avo::Concerns::HasAvatar
- Extended by:
- ActiveSupport::Concern
- Included in:
- Resources::Base
- Defined in:
- lib/avo/concerns/has_avatar.rb
Instance Method Summary collapse
-
#avatar ⇒ Object
Add instance property to compute the options.
- #initials ⇒ Object
Instance Method Details
#avatar ⇒ Object
Add instance property to compute the options
13 14 15 |
# File 'lib/avo/concerns/has_avatar.rb', line 13 def avatar Avatar.new resource: self end |
#initials ⇒ Object
17 18 19 |
# File 'lib/avo/concerns/has_avatar.rb', line 17 def initials record_title.split(" ").map(&:first).join("").first(2).upcase end |