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

fix followed method

parent 283e611b
No related branches found
No related tags found
No related merge requests found
...@@ -6,7 +6,7 @@ class UserSerializer < ActiveModel::Serializer ...@@ -6,7 +6,7 @@ class UserSerializer < ActiveModel::Serializer
end end
def followed def followed
object.followed? current_user current_user.try( :following?, object)
end end
def email def email
......
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