Class: Zadok::Filters::Ransack::SelectFilter
- Inherits:
-
Base
- Object
- Base
- Zadok::Filters::Ransack::SelectFilter
show all
- Defined in:
- lib/zadok/filters/ransack/select_filter.rb
Instance Attribute Summary
Attributes inherited from Base
#params
Instance Method Summary
collapse
Methods inherited from Base
#active_in?, #add_to_params, #i18n_name, #index, #initialize, #modify_columns, #options, #param, #remove_from_params, #text, #title
Instance Method Details
#describe(current_params) ⇒ Object
7
8
9
|
# File 'lib/zadok/filters/ransack/select_filter.rb', line 7
def describe(current_params)
current_params[param]
end
|
#html_options ⇒ Object
15
16
17
|
# File 'lib/zadok/filters/ransack/select_filter.rb', line 15
def html_options
{ class: "form-control" }
end
|
#type ⇒ Object
11
12
13
|
# File 'lib/zadok/filters/ransack/select_filter.rb', line 11
def type
:select
end
|