diff options
author | Reverite <github@reverite.sh> | 2019-11-21 21:52:48 -0500 |
---|---|---|
committer | Reverite <github@reverite.sh> | 2019-11-21 21:52:48 -0500 |
commit | 37a9551c3fe59dd1f50a363ce2532c5f00fdf228 (patch) | |
tree | c3972adfaaf33034bd9efd069881a2090f35e912 /app/controllers/application_controller.rb | |
parent | b2c43eeece54980657875b29507e503531b010de (diff) | |
parent | 55f5e81a9dc4c6cede5d43e549061be2ea9be614 (diff) |
Merge branch 'glitch' into production
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 92339ce2f..599c64062 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -211,13 +211,7 @@ class ApplicationController < ActionController::Base end def respond_with_error(code) - respond_to do |format| - format.any { head code } - - format.html do - use_pack 'error' - render "errors/#{code}", layout: 'error', status: code - end - end + use_pack 'error' + render "errors/#{code}", layout: 'error', status: code end end |