NoamB/sorcery — Issue #187: Reset password + Mongoid = "ArgumentError (wrong number of arguments (1 for 0)):"
Author: christianhellsten
Created: 2012-01-11 10:53:42+00:00
State: open

Using the Reset password feature with Mongoid throws the following error:
ArgumentError (wrong number of arguments (1 for 0))

Mongoid doesn't support transactions. In /lib/sorcery/model/submodules/reset_password.rb transactions are used:

self.class.transaction do
self.save!(:validate => false)
generic_send_email(:reset_password_email_method_name, :reset_password_mailer)
end