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

The primary key of my model is not 'id' #29

Closed
bcavileer opened this issue Dec 3, 2013 · 1 comment
Closed

The primary key of my model is not 'id' #29

bcavileer opened this issue Dec 3, 2013 · 1 comment

Comments

@bcavileer
Copy link
Contributor

My "Vehicle" model's primary key is 'vin' and not 'id'.

When I use the unread gem it doesn't work when I call vehicle.mark_as_read! for: current_user

It works when my primary_key is 'id'.

@ledermann
Copy link
Owner

Thanks!

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