@@ -361,7 +361,9 class Mailer < ActionMailer::Base | |||||
361 | def self.with_synched_deliveries(&block) |
|
361 | def self.with_synched_deliveries(&block) | |
362 | saved_method = ActionMailer::Base.delivery_method |
|
362 | saved_method = ActionMailer::Base.delivery_method | |
363 | if m = saved_method.to_s.match(%r{^async_(.+)$}) |
|
363 | if m = saved_method.to_s.match(%r{^async_(.+)$}) | |
364 | ActionMailer::Base.delivery_method = m[1].to_sym |
|
364 | synched_method = m[1] | |
|
365 | ActionMailer::Base.delivery_method = synched_method.to_sym | |||
|
366 | ActionMailer::Base.send "#{synched_method}_settings=", ActionMailer::Base.send("async_#{synched_method}_settings") | |||
365 | end |
|
367 | end | |
366 | yield |
|
368 | yield | |
367 | ensure |
|
369 | ensure |
General Comments 0
You need to be logged in to leave comments.
Login now