small refactor for ember actions

This commit is contained in:
2014-08-13 17:07:26 +02:00
parent a675999d01
commit 446cf08afb
17 changed files with 54 additions and 30 deletions
+5
View File
@@ -60,6 +60,11 @@ class User
auth_data['info']['name'] rescue I18n.t('user.unknown_supplier_name')
end
# This is the user name as it is shown to other users
def friends_name
auth_data['info']['nickname'] rescue ''
end
def has_active_list?
active_list_id.present?
end