about summary refs log tree commit diff
path: root/lib
diff options
context:
space:
mode:
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>2018-02-04 02:41:01 +0900
committerEugen Rochko <eugen@zeonfederated.com>2018-02-03 18:41:01 +0100
commitf7bf36d8fc5f8a7638a2cee215513c1dcd4f4a96 (patch)
tree3e80cb02ce0f9adb4f1eab2c57ed7bfc18d48cf2 /lib
parent33f56811e38bc330de9dcfa6794c29a176a30311 (diff)
Require environment for generate_static_pages (#6420)
It is required for ApplicationController.
Diffstat (limited to 'lib')
-rw-r--r--lib/tasks/assets.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake
index f60c1b9f2..0826f0186 100644
--- a/lib/tasks/assets.rake
+++ b/lib/tasks/assets.rake
@@ -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