Sha256: 9c5283761ad444cd189b9f2b3384d4aa1b0c8d7d560a26821e2b7fa699bfc80e
Contents?: true
Size: 579 Bytes
Versions: 89
Compression:
Stored size: 579 Bytes
Contents
# -*- encoding : utf-8 -*- class SearchHistoryController < ApplicationController include Blacklight::Configurable copy_blacklight_config_from(CatalogController) 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_to :back end end
Version data entries
89 entries across 89 versions & 1 rubygems