benprew / pony

The express way to send mail from Ruby.
1.14k stars 51 forks source link

Development tools #12

Closed rmalecky closed 10 years ago

rmalecky commented 10 years ago

I wrote a few method to customize the behavior of Pony in my development and staging environments.

benprew commented 10 years ago

This looks good, although can you tell me what you're using override_options for? Is it only for testing? It seems like it could be a source of unexpected issues. Is this solved by default_options?

Thanks

rmalecky commented 10 years ago

I'm using the override_options on our staging server. My app cc's given departments for given actions (ie when a customers payment fails cc finanace@my_company.com). With the override_options I make sure that only the developers get spammed, but we still test that the email system works.

I'm using rails and set all of these options from the environment specific config file.

benprew commented 10 years ago

@rmalecky Ok, thanks, these changes look good.