mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 06:46:11 +08:00
18 lines
247 B
Ruby
18 lines
247 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
|