Add API data to show/index views
This commit is contained in:
@@ -17,7 +17,14 @@ class WikiPageVersion < ApplicationRecord
|
||||
end
|
||||
end
|
||||
|
||||
module ApiMethods
|
||||
def html_data_attributes
|
||||
[:wiki_page_id, :updater_id]
|
||||
end
|
||||
end
|
||||
|
||||
extend SearchMethods
|
||||
include ApiMethods
|
||||
|
||||
def pretty_title
|
||||
title.tr("_", " ")
|
||||
|
||||
Reference in New Issue
Block a user