Sha256: b7bb146582d3849dea502ac4c8217a03a19fdf6c3ce12ae714961c28d9af8da1

Contents?: true

Size: 237 Bytes

Versions: 2

Compression:

Stored size: 237 Bytes

Contents

# frozen_string_literal: true

module Datagrid
  module Filters
    class StringFilter < Datagrid::Filters::BaseFilter
      include Datagrid::Filters::RangedFilter

      def parse(value)
        value&.to_s
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datagrid-2.0.0 lib/datagrid/filters/string_filter.rb
datagrid-2.0.0.pre.alpha lib/datagrid/filters/string_filter.rb