2023-03-04 11:14:54 -05:00
|
|
|
require 'kramdown'
|
|
|
|
|
2023-03-03 13:05:01 -05:00
|
|
|
class Video < Sequel::Model
|
|
|
|
|
2023-03-03 14:19:20 -05:00
|
|
|
many_to_one :channel
|
2023-03-03 13:05:01 -05:00
|
|
|
|
2023-03-04 11:14:54 -05:00
|
|
|
def parseScript()
|
|
|
|
return Kramdown::Document.new(@values[:script]).to_html
|
|
|
|
end
|
|
|
|
|
2023-03-03 13:05:01 -05:00
|
|
|
end
|