Class: Datagrid::Filters::FloatFilter
- Inherits:
-
BaseFilter
- Object
- BaseFilter
- Datagrid::Filters::FloatFilter
- Includes:
- RangedFilter
- Defined in:
- lib/datagrid/filters/float_filter.rb
Instance Method Summary collapse
Methods included from RangedFilter
#default_filter_where, #initialize, #parse_values, #range?
Instance Method Details
#parse(value) ⇒ Object
5 6 7 8 |
# File 'lib/datagrid/filters/float_filter.rb', line 5 def parse(value) return nil if value.blank? value.to_f end |