app/controllers/spotlight/home_pages_controller.rb in blacklight-spotlight-0.2.0 vs app/controllers/spotlight/home_pages_controller.rb in blacklight-spotlight-0.3.0

- old
+ new

@@ -16,11 +16,13 @@ def index redirect_to exhibit_feature_pages_path(@exhibit) end def show - (@response, @document_list) = get_search_results + if @page.display_sidebar? + @response, @document_list = get_search_results + end if @page.nil? or !@page.published? render '/catalog/index' else render 'show' @@ -30,9 +32,9 @@ private alias_method :search_action_url, :exhibit_search_action_url alias_method :search_facet_url, :exhibit_search_facet_url def allowed_page_params - super.concat [:display_title] + super.concat [:display_title, :display_sidebar] end end end