Added script attribute for videos

This commit is contained in:
2023-03-04 11:14:54 -05:00
parent 9ab06f0e9c
commit 51ee9f00fb
6 changed files with 35 additions and 1 deletions

View File

@ -1,5 +1,11 @@
require 'kramdown'
class Video < Sequel::Model
many_to_one :channel
def parseScript()
return Kramdown::Document.new(@values[:script]).to_html
end
end