app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-3.0.0.alpha.9 vs app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-3.0.0.alpha.10
- old
+ new
@@ -29,11 +29,11 @@
def index
respond_to do |format|
format.html
format.json do
- render json: @searches.as_json(methods: %i[count thumbnail_image_url]), root: false
+ render json: @searches.as_json(methods: %i[full_title count thumbnail_image_url]), root: false
end
end
end
def autocomplete
@@ -48,11 +48,11 @@
end
end
end
def edit
- add_breadcrumb @search.title, edit_exhibit_search_path(@search.exhibit, @search)
+ add_breadcrumb @search.full_title, edit_exhibit_search_path(@search.exhibit, @search)
@exhibit = @search.exhibit
end
def update
if @search.update search_params
@@ -103,9 +103,10 @@
end
def search_params
params.require(:search).permit(
:title,
+ :subtitle,
:long_description,
:search_box,
:default_index_view_type,
masthead_attributes: featured_image_params,
thumbnail_attributes: featured_image_params