Sha256: 38384cf49971bb45f952e1955c8df1d65027cc5200136d66fabc98ce21300a79

Contents?: true

Size: 169 Bytes

Versions: 6

Compression:

Stored size: 169 Bytes

Contents

class Datagrid::Filters::FloatFilter < Datagrid::Filters::BaseFilter

  include RangedFilter

  def parse(value)
    return nil if value.blank?
    value.to_f
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
datagrid-1.3.7 lib/datagrid/filters/float_filter.rb
datagrid-1.3.6 lib/datagrid/filters/float_filter.rb
datagrid-1.3.5 lib/datagrid/filters/float_filter.rb
datagrid-1.3.4 lib/datagrid/filters/float_filter.rb
datagrid-1.3.3 lib/datagrid/filters/float_filter.rb
datagrid-1.3.2 lib/datagrid/filters/float_filter.rb