diff options
author | Eugen Rochko <eugen@zeonfederated.com> | 2018-10-28 06:35:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-28 06:35:03 +0100 |
commit | 795f0107d23c1c9bd039f6449fa1e094ab7653a7 (patch) | |
tree | ec4e3c3aaefbfe79b9e86c801516e37db10610fd /app/controllers/application_controller.rb | |
parent | 6f78500d4f515c65ec66416e2d78bc9ae247f91c (diff) |
Include preview cards in status entity in REST API (#9120)
* Include preview cards in status entity in REST API * Display preview card in-stream * Improve in-stream display of preview cards
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index fb4283da3..7bb14aa4c 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -126,6 +126,7 @@ class ApplicationController < ActionController::Base def respond_with_error(code) respond_to do |format| format.any { head code } + format.html do set_locale render "errors/#{code}", layout: 'error', status: code |