Sha256: d41fd594eb60d0cd530a7de7305c04ab002405cb435967e7e77aba5507492c61
Contents?: true
Size: 419 Bytes
Versions: 1
Compression:
Stored size: 419 Bytes
Contents
module Searchgasm module Condition class Equals < Base self.ignore_meaningless = 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
searchgasm-1.2.2 | lib/searchgasm/condition/equals.rb |