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

Pessimistic Locking produces ArgumentError #165

Closed
dasgib opened this issue Feb 26, 2015 · 2 comments
Closed

Pessimistic Locking produces ArgumentError #165

dasgib opened this issue Feb 26, 2015 · 2 comments

Comments

@dasgib
Copy link

dasgib commented Feb 26, 2015

I get "ArgumentError - wrong number of arguments (1 for 0)" @ https://github.com/lynndylanhurley/devise_token_auth/blob/v0.1.32.beta5/app/controllers/devise_token_auth/concerns/set_user_by_token.rb#L57

Anyone has an idea why? When I comment out the lock everything works fine. I don't get this.

I had to use the beta because of #134 and #101

@lynndylanhurley
Copy link
Owner

That's strange - what versions of Rails + ActiveRecord are you using?

@dasgib
Copy link
Author

dasgib commented Feb 27, 2015

I'm sorry... it was some code written by another developer, which does "lock" accounts (using a method called "lock!"). I should have noticed that earlier.

@dasgib dasgib closed this as completed Feb 27, 2015
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