Skip to content
Snippets Groups Projects
Commit 5bbc42e1 authored by Bernardo's avatar Bernardo
Browse files

add follower user to follow serializer

parent 64ba23bd
No related branches found
No related tags found
No related merge requests found
class FollowSerializer < ActiveModel::Serializer
cache key: 'follow', expires_in: 24.hours
attributes :id, :user_id, :followable
attributes :id, :user, :user_id, :followable
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment