blob: cd0a3bd2bbe51bcde5cf6cdab076c52c203be6be (
plain) (
blame)
1
2
3
4
5
6
7
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
|