From c18166a39bd8e8c2fb857e5acb75e5ff055540b2 Mon Sep 17 00:00:00 2001 From: Prathamesh Sonpatki Date: Tue, 12 Mar 2019 14:25:29 +0530 Subject: Show friendly message to install action mailbox if the related table does not exist - This is similar to the work done in https://github.com/rails/rails/pull/31534 --- .../middleware/templates/rescues/invalid_statement.text.erb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb') diff --git a/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb b/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb index 55aaf58713..16c3ecc331 100644 --- a/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb +++ b/actionpack/lib/action_dispatch/middleware/templates/rescues/invalid_statement.text.erb @@ -6,6 +6,8 @@ <%= @exception.message %> <% if defined?(ActiveStorage) && @exception.message.match?(%r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}}) %> To resolve this issue run: rails active_storage:install +<% if defined?(ActionMailbox) && @exception.message.match?(%r{#{ActionMailbox::InboundEmail.table_name}}) %> +To resolve this issue run: rails action_mailbox:install <% end %> <%= render template: "rescues/_source" %> -- cgit v1.2.3