Require environment for generate_static_pages (#6420)

It is required for ApplicationController.
lolsob-rspec
Akihiko Odaki 2018-02-04 02:41:01 +09:00 committed by Eugen Rochko
parent 48af3df758
commit 5892127534
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@ end
namespace :assets do
desc 'Generate static pages'
task :generate_static_pages do
task generate_static_pages: :environment do
render_static_page 'errors/500', layout: 'error', dest: Rails.root.join('public', 'assets', '500.html')
end
end