Class: Helios::Videos::Admin::VideosController
- Inherits:
-
BaseController
- Object
- BaseController
- Helios::Videos::Admin::VideosController
- Defined in:
- app/controllers/helios/videos/admin/videos_controller.rb
Instance Method Summary collapse
Instance Method Details
#show ⇒ Object
7 8 9 10 11 12 13 |
# File 'app/controllers/helios/videos/admin/videos_controller.rb', line 7 def show render json: { id: @video.id, ready: @video.key.present? && @video.playback_urls.present?, player_html: @video.key.present? ? @video.player_component : nil } end |
#update ⇒ Object
15 16 17 18 19 20 21 |
# File 'app/controllers/helios/videos/admin/videos_controller.rb', line 15 def update if @video.update(video_params) head :ok else head :unprocessable_entity end end |