Method: Playbook::PbSource::Source#avatar

Defined in:
app/pb_kits/playbook/pb_source/source.rb

#avatarObject



27
28
29
30
31
32
33
34
# File 'app/pb_kits/playbook/pb_source/source.rb', line 27

def avatar
  if user.present? && (type == "user" || type == "referral")
    avatar_props = user.clone
    avatar_props[:size] = "sm"
    avatar_props.delete(:user_id)
    avatar_props
  end
end