Skip to content

wrong number of arguments (2 for 1) error with Rails 4, Mongoid 4 (latest). #517

Closed
@anlek

Description

@anlek

Hey, I'm trying to use Sorcery on a Rails 4 project with Mongoid 4 (beta).
When I'm trying to log in a user, with the incorrect password, it tries to call inc for failed_login count, however it seems Mongoid 4 has changed the inc method:
https://github.com/mongoid/mongoid/blob/master/lib/mongoid/contextual/atomic.rb#L45

The error is Sorcery happens on line 12 of lib/sorcery/model/adapters/mongoid.rb. Hope that helps,
Andrew

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions