1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

You're not paying by the character

This commit is contained in:
David Heinemeier Hansson 2018-09-19 16:44:48 -07:00
parent f08c37e6bf
commit c0b0ea392c

View file

@ -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