Sha256: b890b9ceb7d31c473a85234ff08a3cb19dca20ae084a7a2c154fc9d42607cce1

Contents?: true

Size: 188 Bytes

Versions: 24

Compression:

Stored size: 188 Bytes

Contents

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

  include Datagrid::Filters::RangedFilter

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

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
datagrid-1.4.2 lib/datagrid/filters/float_filter.rb
datagrid-1.4.1 lib/datagrid/filters/float_filter.rb
datagrid-1.4.0 lib/datagrid/filters/float_filter.rb
datagrid-1.3.9 lib/datagrid/filters/float_filter.rb