0
0
Fork 0

Adding media controller, 1 webm/compose form allowed, previews generated

This commit is contained in:
Eugen Rochko 2016-09-17 17:47:26 +02:00
parent 183a23943b
commit bd5ad304ba
7 changed files with 42 additions and 6 deletions

View file

@ -0,0 +1,13 @@
class MediaController < ApplicationController
before_action :set_media_attachment
def show
redirect TagManager.instance.url_for(@media_attachment.status)
end
private
def set_media_attachment
@media_attachment = MediaAttachment.where.not(status_id: nil).find(params[:id])
end
end