0
0
Fork 0

Replace OEmbed and initial state Rabl templates with serializers (#4110)

* Replace OEmbed Rabl template with serializer

* Replace initial state rabl with serializer
This commit is contained in:
Eugen Rochko 2017-07-08 14:51:05 +02:00 committed by GitHub
parent 102466ac58
commit 864e3f8d9c
9 changed files with 121 additions and 94 deletions

View file

@ -5,8 +5,7 @@ class Api::OEmbedController < Api::BaseController
def show
@stream_entry = find_stream_entry.stream_entry
@width = maxwidth_or_default
@height = maxheight_or_default
render json: @stream_entry, serializer: OEmbedSerializer, width: maxwidth_or_default, height: maxheight_or_default
end
private