stage-manager/lib/models/video.rb

12 lines
164 B
Ruby

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