Sha256: e76640aee51d44dfd802558012d3bd78ac804144c285cd4c223bf7710922e110
Contents?: true
Size: 294 Bytes
Versions: 1
Compression:
Stored size: 294 Bytes
Contents
module Searchgasm module Condition class Ilike < Base class << self def condition_names_for_column super + ["icontains", "ihas"] end end def to_conditions(value) ["#{column_sql} ILIKE ?", "%#{value}%"] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.5.2 | lib/searchgasm/condition/ilike.rb |