app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-0.18.0 vs app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-0.19.0
- old
+ new
@@ -92,10 +92,16 @@
def batch_search_params
params.require(:exhibit).permit('searches_attributes' => [:id, :published, :weight])
end
def search_params
- params.require(:search).permit(:title, :long_description, masthead_attributes: featured_image_attributes, thumbnail_attributes: featured_image_attributes)
+ params.require(:search).permit(
+ :title,
+ :long_description,
+ :default_index_view_type,
+ masthead_attributes: featured_image_attributes,
+ thumbnail_attributes: featured_image_attributes
+ )
end
def featured_image_attributes
[:display, :source, :image, :remote_image_url, :document_global_id, :image_crop_x, :image_crop_y, :image_crop_w, :image_crop_h]
end