-
Hello, i would like to know if is possible to check if the user favorited a post on a array of posts. thanks |
Beta Was this translation helpful? Give feedback.
Answered by
jonhue
Nov 22, 2021
Replies: 1 comment
-
you can use the |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
jonhue
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
you can use the
for_favoritor(user)
scope on the relation, see https://github.com/jonhue/acts_as_favoritor#favorite-model