serializer stuff

This commit is contained in:
2015-09-14 18:53:58 +02:00
parent 36e5b21b13
commit ef894f9e02
37 changed files with 141 additions and 63 deletions
+4
View File
@@ -5,6 +5,10 @@ class JoinRequest
end
alias _id id
def list_id
list.try(:id)
end
def initialize(user: nil, list: nil, created_at: Time.now, updated_at: Time.now)
@user, @list, @created_at, @updated_at = [user, list, created_at, updated_at]
end