2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-06 10:50:21 +08:00

FEATURE: Category setting to make all topics wikis

FEATURE: Category setting to make all topics wikis
This commit is contained in:
Joe Buhlig 2016-12-18 07:38:55 -06:00
parent ddd299f4aa
commit 87251fded7
10 changed files with 29 additions and 1 deletions

View file

@ -25,7 +25,7 @@ module ImportExport
CATEGORY_ATTRS = [:id, :name, :color, :created_at, :user_id, :slug, :description, :text_color,
:auto_close_hours, :auto_close_based_on_last_post,
:topic_template, :suppress_from_homepage, :permissions_params]
:topic_template, :suppress_from_homepage, :all_topics_wiki, :permissions_params]
def export_categories
@export_data[:category] = CATEGORY_ATTRS.inject({}) { |h,a| h[a] = @category.send(a); h }