Skip to content
Snippets Groups Projects
Commit 10df1144 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

Merge branch 'user_followers' into 'master'

add follower user to follow serializer

See merge request !374
parents c82ce065 167d7329
No related branches found
No related tags found
No related merge requests found
class FollowSerializer < ActiveModel::Serializer class FollowSerializer < ActiveModel::Serializer
cache key: 'follow', expires_in: 24.hours cache key: 'follow', expires_in: 24.hours
attributes :id, :user_id, :followable
def follower
object.user
end
attributes :id, :follower, :followable
end 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