0
0
Fork 0

Generate 500.html with assets:precompile, remove loading from Google Fonts (#5067)

This commit is contained in:
Eugen Rochko 2017-09-25 04:04:04 +02:00 committed by GitHub
parent b982d549f4
commit 2c8e3fbbfb
8 changed files with 40 additions and 68 deletions

8
lib/tasks/assets.rake Normal file
View 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