Small patch so that ActionMailer::Base.perform_deliveries will accept a proc

Here's the lighthouse ticket:

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/1217

and the motivation is from here

http://blog.peelmeagrape.net/2008/10/14/careful-who-you-send-mail-to-from-staging-environment

Any agrees/grumbles?

Cheers,
Darragh

Here's the lighthouse ticket:

http://rails.lighthouseapp.com/projects/8994-ruby-on-rails/tickets/
1217

and the motivation is from here

http://blog.peelmeagrape.net/2008/10/14/careful-who-you-send-mail-to-from-staging-environment

It's easy to add new delivery methods to Rails that handle just this
case:

http://www.elevatedrails.com/articles/2006/10/25/email-delivery-in-test-environments/

Mike

Thanks Mike - that it a useful alternative.