Sha256: 3f3074be789fd739f24e2c8248bb1846aac7dd00036c30f51c65e4a5e71c5ac2
Contents?: true
Size: 751 Bytes
Versions: 21
Compression:
Stored size: 751 Bytes
Contents
# frozen_string_literal: true module Blacklight module SearchHistory extend ActiveSupport::Concern include Blacklight::Configurable include Blacklight::SearchContext included do copy_blacklight_config_from(CatalogController) end def index @searches = searches_from_history end # TODO: we may want to remove unsaved (those without user_id) items from # the database when removed from history def clear if session[:history].clear flash[:notice] = I18n.t('blacklight.search_history.clear.success') else flash[:error] = I18n.t('blacklight.search_history.clear.failure') end redirect_back fallback_location: blacklight.search_history_path end end end
Version data entries
21 entries across 21 versions & 2 rubygems