1
0
Fork 0
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:
George Claghorn 2018-11-16 13:24:51 -05:00
parent 7aef5695b8
commit be11dbbc40

View file

@ -21,8 +21,8 @@ class ActionMailbox::Base
end
def perform_processing
run_callbacks :process do
track_status_of_inbound_email do
track_status_of_inbound_email do
run_callbacks :process do
process
end
end