diff options
Diffstat (limited to 'app/models/user.rb')
-rw-r--r-- | app/models/user.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb index 9b199ac..7288412 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -5,4 +5,10 @@ class User < ApplicationRecord has_many :agencies has_many :agents, through: :agencies, source: :agent + + include UsersHelper + + def avatar_url + attributes[:avatar_url] || default_user_avatar_url + end end |