Module: Workarea::User::Avatar
- Extended by:
- ActiveSupport::Concern
- Included in:
- Workarea::User
- Defined in:
- app/models/workarea/user/avatar.rb
Instance Method Summary collapse
Instance Method Details
#avatar_image_url ⇒ Object
15 16 17 18 19 20 21 22 23 |
# File 'app/models/workarea/user/avatar.rb', line 15 def avatar_image_url if avatar.present? avatar.process(:avatar).url elsif !Rails.env.test? gravatar_url else 'workarea/core/placeholder.png' end end |