ging/mailboxer — pull request #82 by bikokid (2012-09-20 00:29:43+00:00)
Title: Merged changes from issue-52 to fix problems seen with send message

These changes fix problems I was seeing with using factory_girl thanks to @atd and his changes in issue-52 . I merged his changes from issue-52 and the specs passed again. I was however seeing the same problem with my app which doesn't use hydra-head and this is what I see:

in ./app/models/message.rb:
at line 52

email_to = r.send(Mailboxer.email_method,self)

#it is throwing an exception from rails attribute_accesors .
# However rails doesn't show the exact nature of the error. I had to use debugger to get that far.
# I changed

config.uses_emails = false

#and now everything runs fine. However this problem needs more robust error handling to help with sanity in the future.