Sha256: 2d03150493c04c4b4b5e3421a793e73d4daa691500a24ab0fd2fbc3191c546ce
Contents?: true
Size: 357 Bytes
Versions: 4
Compression:
Stored size: 357 Bytes
Contents
module Searchgasm module Condition class BeginsWith < Base self.join_arrays_with_or = true class << self def condition_names_for_column super + ["bw", "sw", "starts_with", "start"] end end def to_conditions(value) ["#{column_sql} LIKE ?", "#{value}%"] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems