Class: Datagrid::Filters::StringFilter

Inherits:
BaseFilter
  • Object
show all
Includes:
RangedFilter
Defined in:
lib/datagrid/filters/string_filter.rb

Instance Attribute Summary

Attributes inherited from BaseFilter

#block, #grid_class, #name, #options

Instance Method Summary collapse

Methods included from RangedFilter

#default_filter_where, #initialize, #parse_values, #range?

Methods inherited from BaseFilter

#allow_blank?, #allow_nil?, #apply, #default, #default_filter_block, #dummy?, #enabled?, form_builder_helper_name, #form_builder_helper_name, #format, #header, #initialize, #input_options, #label_options, #multiple?, #parse_values, #separator, #supports_range?, #type, #unapplicable_value?

Instance Method Details

#parse(value) ⇒ Object


5
6
7
# File 'lib/datagrid/filters/string_filter.rb', line 5

def parse(value)
  value.nil? ? nil : value.to_s
end