Class: ActiveAdmin::Inputs::FilterSelectInput

Inherits:
Formtastic::Inputs::SelectInput
  • Object
show all
Includes:
FilterBase
Defined in:
lib/active_admin/inputs/filter_select_input.rb

Instance Method Summary collapse

Methods included from FilterBase

#collection_from_options, #humanized_method_name, #input_wrapping, #reflection_for, #required?, #wrapper_html_options

Instance Method Details

#extra_input_html_optionsObject



18
19
20
# File 'lib/active_admin/inputs/filter_select_input.rb', line 18

def extra_input_html_options
  {}
end

#input_nameObject



6
7
8
# File 'lib/active_admin/inputs/filter_select_input.rb', line 6

def input_name
  "#{super}_eq"
end

#input_optionsObject



10
11
12
# File 'lib/active_admin/inputs/filter_select_input.rb', line 10

def input_options
  super.merge(:include_blank => I18n.t('active_admin.any'))
end

#methodObject



14
15
16
# File 'lib/active_admin/inputs/filter_select_input.rb', line 14

def method
  super.to_s.gsub('_id','').to_sym
end