mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35581 from prathamesh-sonpatki/action_mailbox_error
Show friendly message to install action mailbox if the related table does not exist
This commit is contained in:
commit
4948663b32
2 changed files with 5 additions and 0 deletions
|
@ -13,6 +13,9 @@
|
|||
<% if defined?(ActiveStorage) && @exception.message.match?(%r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}}) %>
|
||||
<br />To resolve this issue run: rails active_storage:install
|
||||
<% end %>
|
||||
<% if defined?(ActionMailbox) && @exception.message.match?(%r{#{ActionMailbox::InboundEmail.table_name}}) %>
|
||||
<br />To resolve this issue run: rails action_mailbox:install
|
||||
<% end %>
|
||||
</h2>
|
||||
|
||||
<%= render "rescues/source", source_extracts: @source_extracts, show_source_idx: @show_source_idx %>
|
||||
|
|
|
@ -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" %>
|
||||
|
|
Loading…
Reference in a new issue