This commit is contained in:
2015-09-08 16:27:21 +02:00
parent d87befd00f
commit fdcfaa1d7d
10 changed files with 39 additions and 37 deletions
+2 -5
View File
@@ -1,8 +1,5 @@
class Users::UserSerializer
include Qwaiter::UserBaseSerializer
attributes :email, :provider, :uid, :name, :avatar
def name
object.friends_name
end
attributes :email, :provider, :uid, :avatar
attribute(:name){ object.friends_name }
end