Module: SearchHelper

Defined in:
app/helpers/search_helper.rb

Instance Method Summary collapse

Instance Method Details

#search_optionsObject



2
3
4
5
6
7
8
9
# File 'app/helpers/search_helper.rb', line 2

def search_options
  options = {}
  return options if params[:search].nil?
  params[:search].each do |name, value|
    options["search[#{name}]"] = value
  end
  options
end