We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hey. I would like to access the friendship records
For example the created_at column, so I could say "John sent you a friend request 3 days ago".
created_at
At the moment I only get the user record.
This works fine in one case, like current_user.friends can be changed to current_user.friendships, and then i can serialize it nicely in api-mode:
current_user.friends
current_user.friendships
class Api::V1::FriendshipSerializer < ActiveModel::Serializer attributes :id belongs_to :friend end
But its missing for requested/pending/blocked. These would be nice :)
current_user.requested_friendships current_user.pending_friendships current_user.blocked_friendships
Thanks
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hey. I would like to access the friendship records
For example the
created_at
column, so I could say "John sent you a friend request 3 days ago".At the moment I only get the user record.
This works fine in one case, like
current_user.friends
can be changed tocurrent_user.friendships
, and then i can serialize it nicely in api-mode:But its missing for requested/pending/blocked. These would be nice :)
Thanks
The text was updated successfully, but these errors were encountered: