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
This commit is contained in:
parent
6f78500d4f
commit
795f0107d2
10 changed files with 61 additions and 11 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue