Method: Sufia::SufiaHelperBehavior#current_search_parameters
- Defined in:
- app/helpers/sufia/sufia_helper_behavior.rb
#current_search_parameters ⇒ Object
Only display the current search parameters if the user is not in the dashboard. If they are in the dashboard, then the search defaults to the user’s files and not all of Sufia.
150 151 152 153 154 155 156 |
# File 'app/helpers/sufia/sufia_helper_behavior.rb', line 150 def current_search_parameters if on_the_dashboard? return nil else return params[:q] end end |