Browse Source

Adds a relationship key to user json_response

Lou 3 years ago
parent
commit
61331e4414
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      app/serializers/user_serializer.rb

+ 1
- 0
app/serializers/user_serializer.rb View File

@@ -1,4 +1,5 @@
1 1
 class UserSerializer
2 2
   include JSONAPI::Serializer
3 3
   attributes :email, :username
4
+  has_many :activities
4 5
 end

Loading…
Cancel
Save