app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-4.1.2 vs app/controllers/spotlight/searches_controller.rb in blacklight-spotlight-4.2.0
- old
+ new
@@ -28,11 +28,11 @@
redirect_to exhibit_browse_url(@search.exhibit, @search)
end
def edit
@groups = @exhibit.groups
- add_breadcrumb @search.full_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 create
@search.assign_attributes(search_params.except((:title unless @search.new_record?)))
@@ -92,12 +92,12 @@
query_params.merge(q: params[:q])
end
def attach_breadcrumbs
e = @exhibit || @search&.exhibit
- add_breadcrumb t(:'spotlight.exhibits.breadcrumb', title: e.title), e
- add_breadcrumb t(:'spotlight.curation.sidebar.header'), exhibit_dashboard_path(e)
- add_breadcrumb t(:'spotlight.curation.sidebar.browse'), exhibit_searches_path(e)
+ add_breadcrumb(t(:'spotlight.exhibits.breadcrumb', title: e.title), e)
+ add_breadcrumb(t(:'spotlight.curation.sidebar.header'), exhibit_dashboard_path(e))
+ add_breadcrumb(t(:'spotlight.curation.sidebar.browse'), exhibit_searches_path(e))
end
def batch_search_params
params.require(:exhibit).permit('searches_attributes' => %i[id published weight])
end