Skip to content
New issue

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

How do you check if the current user is blocking the target user?? #107

Open
RailsCod3rFuture opened this issue Jun 21, 2018 · 1 comment

Comments

@RailsCod3rFuture
Copy link

I'm trying to use <% if current_user.blocking?(@user) %> but it does not work. What method are you using for this feature?

@RailsCod3rFuture
Copy link
Author

Fixed it. <%= if current_user.blocks.include?(@user) %>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant