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

Problem in usage examples #85

Open
saneef opened this issue May 1, 2017 · 2 comments
Open

Problem in usage examples #85

saneef opened this issue May 1, 2017 · 2 comments

Comments

@saneef
Copy link

saneef commented May 1, 2017

Currently, when a new user(reader) is created, all messages (readables) created before that point in time will be marked as read. It can only be disabled by overriding the setup_new_reader function in the reader.

So the in the example have_not_read method should ideally return empty.

## Get users that have not read a given message
user1 = User.create!
user2 = User.create!

User.have_not_read(message1)
# => [ user1, user2 ]
@ishields
Copy link

Yes this was very confusing. Took me a while to track down setup_new_reader since it's not documented in the readme.

@iamnader
Copy link

just ran into this as well. would be great to document!

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

3 participants