Generate 500.html with assets:precompile, remove loading from Google Fonts (#5067)
This commit is contained in:
1 parent
b982d549f4
commit
2c8e3fbbfb
8 files changed
+40
-68
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user