]> cat aescling's git repositories - mastodon.git/commitdiff
Use error pack when rendering error pages. Fixes #305.
authorDavid Yip <yipdw@member.fsf.org>
Sun, 7 Jan 2018 19:30:17 +0000 (13:30 -0600)
committerDavid Yip <yipdw@member.fsf.org>
Sun, 7 Jan 2018 19:30:17 +0000 (13:30 -0600)
app/controllers/application_controller.rb

index f3d8f69663faf0780676a119b57feff16dff6094..f997e9569faed2c6606470e6a813614e65be40b0 100644 (file)
@@ -192,6 +192,7 @@ class ApplicationController < ActionController::Base
       format.any  { head code }
       format.html do
         set_locale
+        use_pack 'error'
         render "errors/#{code}", layout: 'error', status: code
       end
     end