about summary refs log tree commit diff
path: root/app/controllers/api
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-07-08 14:51:05 +0200
committerGitHub <noreply@github.com>2017-07-08 14:51:05 +0200
commit864e3f8d9ca652e10a28bddbb0d0df629d2849d4 (patch)
tree3fb2f9c97fca49cc467622ab532252f8044146f6 /app/controllers/api
parent102466ac5842b20f32a9c5e2fa3f35414c34574b (diff)
Replace OEmbed and initial state Rabl templates with serializers (#4110)
* Replace OEmbed Rabl template with serializer

* Replace initial state rabl with serializer
Diffstat (limited to 'app/controllers/api')
-rw-r--r--app/controllers/api/oembed_controller.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/controllers/api/oembed_controller.rb b/app/controllers/api/oembed_controller.rb
index 6e3e34d96..f8c87dd16 100644
--- a/app/controllers/api/oembed_controller.rb
+++ b/app/controllers/api/oembed_controller.rb
@@ -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