From c0b0ea392cbe749ab67af027bf4ff5135cfefaa6 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 19 Sep 2018 16:44:48 -0700 Subject: You're not paying by the character --- app/models/action_mailroom/inbound_email/routable.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/action_mailroom/inbound_email') diff --git a/app/models/action_mailroom/inbound_email/routable.rb b/app/models/action_mailroom/inbound_email/routable.rb index b888c592f5..61a14a0ba1 100644 --- a/app/models/action_mailroom/inbound_email/routable.rb +++ b/app/models/action_mailroom/inbound_email/routable.rb @@ -2,7 +2,7 @@ module ActionMailroom::InboundEmail::Routable extend ActiveSupport::Concern included do - after_create_commit :route_later, if: ->(r) { r.pending? } + after_create_commit :route_later, if: ->(inbound_email) { inbound_email.pending? } end private -- cgit v1.2.3