diff options
author | George Claghorn <george@basecamp.com> | 2018-10-01 15:42:32 -0400 |
---|---|---|
committer | George Claghorn <george@basecamp.com> | 2018-10-01 15:42:35 -0400 |
commit | 704179251f3a96f7e7f2ed9b28e1524ace3a4927 (patch) | |
tree | 620db65f73edd88372dfbd5d79aee3ef69b90e7a /app/models/action_mailbox/inbound_email/routable.rb | |
parent | dd593b98b5ef6e66d72942065dd1c0a9b266b9bc (diff) | |
download | rails-704179251f3a96f7e7f2ed9b28e1524ace3a4927.tar.gz rails-704179251f3a96f7e7f2ed9b28e1524ace3a4927.tar.bz2 rails-704179251f3a96f7e7f2ed9b28e1524ace3a4927.zip |
Add a test helper for creating and routing an inbound email
Diffstat (limited to 'app/models/action_mailbox/inbound_email/routable.rb')
-rw-r--r-- | app/models/action_mailbox/inbound_email/routable.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/action_mailbox/inbound_email/routable.rb b/app/models/action_mailbox/inbound_email/routable.rb index 1928f9e387..48b357af45 100644 --- a/app/models/action_mailbox/inbound_email/routable.rb +++ b/app/models/action_mailbox/inbound_email/routable.rb @@ -8,4 +8,8 @@ module ActionMailbox::InboundEmail::Routable def route_later ActionMailbox::RoutingJob.perform_later self end + + def route + ApplicationMailbox.route self + end end |