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.8.2 lib/datagrid/filters/float_filter.rb
datagrid-1.8.1 lib/datagrid/filters/float_filter.rb
datagrid-1.8.0 lib/datagrid/filters/float_filter.rb
datagrid-1.7.0 lib/datagrid/filters/float_filter.rb
datagrid-1.6.3 lib/datagrid/filters/float_filter.rb
datagrid-1.6.2 lib/datagrid/filters/float_filter.rb
datagrid-1.6.1 lib/datagrid/filters/float_filter.rb
datagrid-1.6.0 lib/datagrid/filters/float_filter.rb
datagrid-1.5.9 lib/datagrid/filters/float_filter.rb
datagrid-1.5.8 lib/datagrid/filters/float_filter.rb
datagrid-1.5.7 lib/datagrid/filters/float_filter.rb
datagrid-1.5.6 lib/datagrid/filters/float_filter.rb
datagrid-1.5.5 lib/datagrid/filters/float_filter.rb
datagrid-1.5.4 lib/datagrid/filters/float_filter.rb
datagrid-1.5.3 lib/datagrid/filters/float_filter.rb
datagrid-1.5.2 lib/datagrid/filters/float_filter.rb
datagrid-1.5.1 lib/datagrid/filters/float_filter.rb
datagrid-1.5.0 lib/datagrid/filters/float_filter.rb
datagrid-1.4.4 lib/datagrid/filters/float_filter.rb
datagrid-1.4.3 lib/datagrid/filters/float_filter.rb