aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/action_mailbox/inbound_email/routable.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/action_mailbox/inbound_email/routable.rb')
-rw-r--r--app/models/action_mailbox/inbound_email/routable.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/action_mailbox/inbound_email/routable.rb b/app/models/action_mailbox/inbound_email/routable.rb
index 48b357af45..8f5b0ddd39 100644
--- a/app/models/action_mailbox/inbound_email/routable.rb
+++ b/app/models/action_mailbox/inbound_email/routable.rb
@@ -2,7 +2,7 @@ module ActionMailbox::InboundEmail::Routable
extend ActiveSupport::Concern
included do
- after_create_commit :route_later, if: ->(inbound_email) { inbound_email.pending? }
+ after_create_commit :route_later, if: :pending?
end
def route_later