NoamB/sorcery — Issue #228: Problem with redis integration
Author: lucianosousa
Created: 2012-02-28 21:32:50+00:00
State: open

When I override the generic_send_email method for use redis, I received the follow:

ArgumentError (wrong number of arguments (1 for 0)):
app/models/user.rb:44:in `generic_send_email'
app/controllers/users_controller.rb:7:in `create'

my method is something this:

def generic_send_email(method, mailer)
config.send(mailer).send(config.send(method, self.id)).deliver
end

Log for this:
sorcery (0.7.5) lib/sorcery/model/submodules/user_activation.rb:122:in `send_activation_needed_email!'

def send_activation_needed_email!
generic_send_email(:activation_needed_email_method_name, :user_activation_mailer) unless sorcery_config.activation_needed_email_method_name.nil?
end

Why this method is called, and, it's possible ignore/override this?

thanks