blob: 43af6a336d2096ef68f638666f949d65a13b56eb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
# frozen_string_literal: true
module API
module Entities
class WikiPage < WikiPageBasic
include ::MarkupHelper
expose :content do |wiki_page, options|
options[:render_html] ? render_wiki_content(wiki_page, ref: wiki_page.version.id) : wiki_page.content
end
expose :encoding do |wiki_page|
wiki_page.content.encoding.name
end
end
end
end
|