NoamB/sorcery — pull request #268 by xpepermint (2012-04-19 17:47:27+00:00)
Title: Fixing validate_mailer_defined bug (issue #267)

This is a small bug fix for two validate_mailer_defined methods.

When checking the config values of `user_activation_mailer` and `reset_password_mailer` the if statement does not always return what we expect. This `@sorcery_config.user_activation_mailer == nil` works in 90% but if you set the mailer like this `MyMailer.delay` where the delay method returns the class (what we have to when using delayed_job) you will get true instead of false.

As you can see from the commit i changed
```ruby
@sorcery_config.user_activation_mailer == nil
@sorcery_config.reset_password_mailer == nil
```
to
```ruby
@sorcery_config.user_activation_mailer.try(:class).nil?
@sorcery_config.reset_password_mailer.try(:class).nil?
```

Please merge this commit, it's very important. Thanks.