Class: Datagrid::Filters::BooleanFilter

Inherits:
BaseFilter
  • Object
show all
Defined in:
lib/datagrid/filters/boolean_filter.rb

Overview

:nodoc:

Instance Attribute Summary

Attributes inherited from BaseFilter

#block, #grid_class, #name, #options

Instance Method Summary collapse

Methods inherited from BaseFilter

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

Constructor Details

This class inherits a constructor from Datagrid::Filters::BaseFilter

Instance Method Details

#parse(value) ⇒ Object



4
5
6
# File 'lib/datagrid/filters/boolean_filter.rb', line 4

def parse(value)
  Datagrid::Utils.booleanize(value)
end