Submit social housing lettings and sales data (CORE)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
class SessionsController < ApplicationController
|
|
|
|
def clear_filters
|
|
|
|
session[session_name_for(params[:filter_type])] = "{}"
|
|
|
|
path_params = params[:path_params].presence || {}
|
|
|
|
|
|
|
|
redirect_to send("#{params[:filter_type]}_path", scheme_id: path_params[:scheme_id])
|
|
|
|
end
|
|
|
|
|
|
|
|
private
|
|
|
|
|
|
|
|
def session_name_for(filter_type)
|
|
|
|
"#{filter_type}_filters"
|
|
|
|
end
|
|
|
|
end
|