Sha256: 604e3fe9d1994c5d02bc570eb419a107015ef70a5f1c337bbb9a3cb336108b11
Contents?: true
Size: 414 Bytes
Versions: 4
Compression:
Stored size: 414 Bytes
Contents
module Searchgasm module Condition class Equals < Base self.ignore_blanks = false class << self def aliases_for_column(column) ["#{column.name}", "#{column.name}_is"] end end def to_conditions(value) # Let ActiveRecord handle this klass.send(:sanitize_sql_hash_for_conditions, {column.name => value}) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems