lib/roda/plugins/mail_processor.rb in roda-3.16.0 vs lib/roda/plugins/mail_processor.rb in roda-3.17.0
- old
+ new
@@ -299,10 +299,10 @@
def process_mail(mail)
scope = new("PATH_INFO"=>'', 'SCRIPT_NAME'=>'', "REQUEST_METHOD"=>"PROCESSMAIL", 'rack.input'=>StringIO.new, 'roda.mail'=>mail)
begin
begin
- scope.process_mail(&route_block)
+ scope.process_mail(&@rack_app_route_block)
rescue UnhandledMail
scope.unhandled_mail_hook
else
scope.handled_mail_hook
end