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

@ -1,4 +1,5 @@
object @media
attribute :id
attribute :id, :type
node(:url) { |media| full_asset_url(media.file.url) }
node(:preview_url) { |media| full_asset_url(media.file.url(:small)) }
node(:text_url) { |media| medium_url(media) }