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

Class.mark_as_read! :all, for: user doesn't mark all as unread in a transaction #26

Closed
kenips opened this issue Aug 7, 2013 · 0 comments

Comments

@kenips
Copy link

kenips commented Aug 7, 2013

When inside a transaction, say:

Book.transaction do
  Book.mark_as_read! :all, for: user
  Book.unread_by(user)
end

would still return unread books from before the transaction. I understand that this could be by design, but perhaps there could be instance variables set above the persistence level to provide support for this scenario?

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

2 participants