mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #35139 from 7coAim/fix_debug_exceptions
Fix NameError : Make debug exceptions works in an environment where ActiveStorage is not loaded.
This commit is contained in:
commit
44232b4854
3 changed files with 6 additions and 2 deletions
|
@ -1,3 +1,7 @@
|
|||
* Make debug exceptions works in an environment where ActiveStorage is not loaded.
|
||||
|
||||
*Tomoyuki Kurosawa*
|
||||
|
||||
* `ActionDispatch::SystemTestCase.driven_by` can now be called with a block
|
||||
to define specific browser capabilities.
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
<div id="container">
|
||||
<h2>
|
||||
<%= h @exception.message %>
|
||||
<% if @exception.message.match? %r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}} %>
|
||||
<% 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 %>
|
||||
</h2>
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
<% end %>
|
||||
|
||||
<%= @exception.message %>
|
||||
<% if @exception.message.match? %r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}} %>
|
||||
<% if defined?(ActiveStorage) && @exception.message.match?(%r{#{ActiveStorage::Blob.table_name}|#{ActiveStorage::Attachment.table_name}}) %>
|
||||
To resolve this issue run: rails active_storage:install
|
||||
<% end %>
|
||||
|
||||
|
|
Loading…
Reference in a new issue