Sha256: cccf70e067264b49df49a7b1abd7a446d1efa67cf6c4749a234943d709b24b46
Contents?: true
Size: 384 Bytes
Versions: 39
Compression:
Stored size: 384 Bytes
Contents
class Agilibox::SmallData::FilterStrategyByKeyValue < ::Agilibox::SmallData::FilterStrategy attr_reader :key def initialize(key = nil) @key = key end def apply(query, value) value = true if value == "true" value = false if value == "false" value = nil if value == "nil" value = nil if value == "null" query.where("#{key} = ?", value) end end
Version data entries
39 entries across 39 versions & 1 rubygems