mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Wrap callbacks in status tracking
Mark the inbound email as processing prior to running before_processing callbacks. Catch failures in after_processing callbacks.
This commit is contained in:
parent
7aef5695b8
commit
be11dbbc40
1 changed files with 2 additions and 2 deletions
|
@ -21,8 +21,8 @@ class ActionMailbox::Base
|
||||||
end
|
end
|
||||||
|
|
||||||
def perform_processing
|
def perform_processing
|
||||||
run_callbacks :process do
|
track_status_of_inbound_email do
|
||||||
track_status_of_inbound_email do
|
run_callbacks :process do
|
||||||
process
|
process
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue