mirror of
https://github.com/kikobar/mastodon.git
synced 2024-11-18 21:27:41 +00:00
9 lines
266 B
Ruby
9 lines
266 B
Ruby
# 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
|