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

Adding a new .read?(current_user) instance method in readable.rb InstanceMethods #116

Open
ishields opened this issue Mar 13, 2020 · 0 comments

Comments

@ishields
Copy link

Currently there is only a .unread? method which means to determine if something is read you need to do !thing.unread(current_user). Would it be a good idea to add a .read?(current_user) method?

def read?(reader)
    !unread?(reader)
end
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