newleaders/thincloud-postmark — pull request #5 by elskwid (2012-11-21 23:54:23+00:00)
Title: Fixes delivery_method and postmark_settings issue

The initialization order of Rails runs the
initializers (config/initializers) after the
`config.action_mailer` settings have been applied
to ActionMailer::Base. ActionMailer is configured
in `ActiveSupport.on_load(:action_mailer)` like
this `options.each { |k,v| send("#{k}=", v) }`.

This fix applies the tc-postmark settings both
to the application config object and ActionMailer
so it appears normal to the outside world. All of
these settings are applied at the end of the
initialization process using the `finisher_hook`.