mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 10:05:24 +08:00
19 lines
248 B
Ruby
19 lines
248 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
module Onebox
|
||
|
module LayoutSupport
|
||
|
|
||
|
def self.max_text
|
||
|
500
|
||
|
end
|
||
|
|
||
|
def layout
|
||
|
@layout ||= Layout.new(self.class.onebox_name, data)
|
||
|
end
|
||
|
|
||
|
def to_html
|
||
|
layout.to_html
|
||
|
end
|
||
|
end
|
||
|
end
|