Sha256: e362a633a208a3392741335ec44c9f5454762b14d57247a138478256d1b3e016
Contents?: true
Size: 308 Bytes
Versions: 1
Compression:
Stored size: 308 Bytes
Contents
module Searchgasm module Condition class Like < Base class << self def condition_names_for_column super + ["contains", "has"] end end def to_conditions(value) ["#{column_sql} #{like_condition_name} ?", "%#{value}%"] end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.5.3 | lib/searchgasm/condition/like.rb |