Generate 500.html with assets:precompile, remove loading from Google Fonts (#5067)
This commit is contained in:
parent
b982d549f4
commit
2c8e3fbbfb
8 changed files with 40 additions and 68 deletions
8
lib/tasks/assets.rake
Normal file
8
lib/tasks/assets.rake
Normal file
|
@ -0,0 +1,8 @@
|
|||
# frozen_string_literal: true
|
||||
|
||||
if Rake::Task.task_defined?('assets:precompile')
|
||||
Rake::Task['assets:precompile'].enhance do
|
||||
html = ApplicationController.render('errors/500', layout: 'error')
|
||||
File.write(Rails.root.join('public', '500.html'), html)
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue