Sha256: a2aa38698267975e7a04ce780b4a81ffafc1450b8ffcda91af872a4c7d35758d

Contents?: true

Size: 145 Bytes

Versions: 8

Compression:

Stored size: 145 Bytes

Contents

class Datagrid::Filters::FloatFilter < Datagrid::Filters::BaseFilter
  def format(value)
    return nil if value.blank?
    value.to_f
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
datagrid-0.8.2 lib/datagrid/filters/float_filter.rb
datagrid-0.8.1 lib/datagrid/filters/float_filter.rb
datagrid-0.8.0 lib/datagrid/filters/float_filter.rb
datagrid-0.7.1 lib/datagrid/filters/float_filter.rb
datagrid-0.7.0 lib/datagrid/filters/float_filter.rb
datagrid-0.6.4 lib/datagrid/filters/float_filter.rb
datagrid-0.6.3 lib/datagrid/filters/float_filter.rb
datagrid-0.6.2 lib/datagrid/filters/float_filter.rb