aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/action_mailbox/inbound_email/routable.rb
diff options
context:
space:
mode:
authorGeorge Claghorn <george@basecamp.com>2018-10-17 10:38:51 -0400
committerGeorge Claghorn <george@basecamp.com>2018-10-17 10:38:51 -0400
commit8973fbcf08fcbfb7af8ad9fd9465ff3c2de06437 (patch)
tree040e685506501fcc5ddf185748a34d6497ab3b0e /app/models/action_mailbox/inbound_email/routable.rb
parent47445511862a4c9979fb46889011edf585391091 (diff)
downloadrails-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.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