diff options
author | George Claghorn <george@basecamp.com> | 2018-10-17 10:38:51 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-17 10:38:51 -0400 |
commit | 8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437 (patch) | |
tree | 040e685506501fcc5ddf185748a34d6497ab3b0e /app/models/action_mailbox/inbound_email/routable.rb | |
parent | 47445511862a4c9979fb46889011edf585391091 (diff) | |
download | rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.tar.gz rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.tar.bz2 rails-8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437.zip |
Simplify incineration
Diffstat (limited to 'app/models/action_mailbox/inbound_email/routable.rb')
-rw-r--r-- | app/models/action_mailbox/inbound_email/routable.rb | 2 |
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 |