Sha256: 9621b53a47c72f8d12466643846cddd1a7a7ad9dd9256e5b875b2ce25e7fbfbb
Contents?: true
Size: 377 Bytes
Versions: 1
Compression:
Stored size: 377 Bytes
Contents
module FilterParam module Operators class Contains < FieldFilterOperator operator_tag :co operand_data_type :string def self.sql(field, literal) super pattern = "%#{literal.value}%" "#{field.actual_name} LIKE #{sql_quote(pattern)}" end end end end FilterParam::Operator.register(FilterParam::Operators::Contains)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
filter_param-0.1.2 | lib/filter_param/operators/contains.rb |