app/controllers/application_controller.rb
# Set in before filter and frozen so we have an unmodified copy of request params for use in rel link tags
Set in before filter and frozen so we have an unmodified copy of request params for use in rel link tags
Set in before filter and frozen so we have an unmodified copy of request params for use in rel link tags
def original_request_params
    return @original_request_params if @original_request_params
    if params[:controller] == 'search' && params[:action] == 'index' && params[:id]
      if params[:q].blank?
        params["q"] = params["id"]
      end
      params.delete("id")
    end
    @original_request_params ||= params.clone.freeze 
  end
def original_request_params return @original_request_params if @original_request_params if params [ :controller ] == 'search' && params [ :action ] == 'index' && params [ :id ] if params [ :q ] . blank? params [ "q" ] = params [ "id" ] end params . delete ( "id" ) end @original_request_params ||= params . clone . freeze end
Set in before filter and frozen so we have an unmodified copy of request params for use in rel link tags
Set in before filter and frozen so we have an unmodified copy of request params for use in rel link tags
# frozen because we don't want @original_request_params to be modified