Module: Godmin::Helpers::Filters

Defined in:
lib/godmin/helpers/filters.rb

Instance Method Summary collapse

Instance Method Details

#filter_input_tag(name, options) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
15
# File 'lib/godmin/helpers/filters.rb', line 4

def filter_input_tag(name, options)
  case options[:as]
  when :string
    filter_string_tag(name, options)
  when :select
    filter_select_tag(name, options)
  when :multiselect
    filter_multiselect_tag(name, options)
  when :checkboxes
    filter_checkbox_tags(name, options)
  end
end