Sha256: 630d58af8c5e3f10122f3c7c5008023c9bf77ee802695987e736485ef79e3306
Contents?: true
Size: 254 Bytes
Versions: 5
Compression:
Stored size: 254 Bytes
Contents
require "datagrid/filters/ranged_filter" class Datagrid::Filters::IntegerFilter < Datagrid::Filters::BaseFilter include RangedFilter def format(value) return nil if value.blank? return value if value.is_a?(Range) value.to_i end end
Version data entries
5 entries across 5 versions & 1 rubygems