Add embed class name setup for embeddable hosts

This commit is contained in:
Pat David
2017-05-05 18:08:18 -04:00
committed by Robin Ward
parent 9b84cd832c
commit 4bf8548dc5
8 changed files with 18 additions and 5 deletions

View File

@ -22,6 +22,7 @@ class Admin::EmbeddableHostsController < Admin::AdminController
def save_host(host)
host.host = params[:embeddable_host][:host]
host.path_whitelist = params[:embeddable_host][:path_whitelist]
host.class_name = params[:embeddable_host][:class_name]
host.category_id = params[:embeddable_host][:category_id]
host.category_id = SiteSetting.uncategorized_category_id if host.category_id.blank?