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

Undefined method 'read' for MessagingUser #8

Open
shawno opened this issue Feb 14, 2013 · 3 comments
Open

Undefined method 'read' for MessagingUser #8

shawno opened this issue Feb 14, 2013 · 3 comments

Comments

@shawno
Copy link

shawno commented Feb 14, 2013

It seems messaging isn't updated to reflect the mailboxer 0.8.0 API.

from https://github.com/ging/mailboxer#warning-for-version-080

"Version 0.8.0 sees Messageable#read and Messageable#unread renamed to mark_as_(un)read, and Receipt#read and Receipt#unread to is_(un)read. This may break existing applications, but read is a reserved name for Active Record, and the best pratice in this case is simply avoid using it."

@vibhoo
Copy link

vibhoo commented Mar 7, 2013

Getting the same error how to fix it?

@shawno
Copy link
Author

shawno commented Mar 8, 2013

I abandoned this and built something from scratch, sorry for the bad news.

@alecslupu
Copy link

As a fix for this:

def read(args)
  mark_as_read(*args)
end

def unread(args)
  mark_as_unread(*args)
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

3 participants