Sha256: b32f169fc3dc01947f787e14657eec68d195c7a9388b04b6805212f21ee7c078

Contents?: true

Size: 148 Bytes

Versions: 23

Compression:

Stored size: 148 Bytes

Contents

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

Version data entries

23 entries across 23 versions & 1 rubygems

Version Path
datagrid-0.6.4 lib/datagrid/filters/integer_filter.rb
datagrid-0.6.3 lib/datagrid/filters/integer_filter.rb
datagrid-0.6.2 lib/datagrid/filters/integer_filter.rb
datagrid-0.6.0 lib/datagrid/filters/integer_filter.rb
datagrid-0.5.4 lib/datagrid/filters/integer_filter.rb
datagrid-0.5.3 lib/datagrid/filters/integer_filter.rb
datagrid-0.5.2 lib/datagrid/filters/integer_filter.rb
datagrid-0.5.1 lib/datagrid/filters/integer_filter.rb
datagrid-0.5.0 lib/datagrid/filters/integer_filter.rb
datagrid-0.4.1 lib/datagrid/filters/integer_filter.rb
datagrid-0.4.0 lib/datagrid/filters/integer_filter.rb
datagrid-0.3.6 lib/datagrid/filters/integer_filter.rb
datagrid-0.3.5 lib/datagrid/filters/integer_filter.rb
datagrid-0.3.4 lib/datagrid/filters/integer_filter.rb
datagrid-0.3.3 lib/datagrid/filters/integer_filter.rb
datagrid-0.3.2 lib/datagrid/filters/integer_filter.rb
datagrid-0.3.1 lib/datagrid/filters/integer_filter.rb
datagrid-0.3.0 lib/datagrid/filters/integer_filter.rb
datagrid-0.2.0 lib/datagrid/filters/integer_filter.rb
datagrid-0.1.2 lib/datagrid/filters/integer_filter.rb