Sha256: a99475d22dee4f85fd4624df39122f75a5c49562e419f88a0dd994ec4dac8bec
Contents?: true
Size: 340 Bytes
Versions: 8
Compression:
Stored size: 340 Bytes
Contents
class BMC::Filter::ByKeyValues < BMC::Filter::ByKeyValue def apply(query, value) value = value.split if value.is_a?(String) value = value.select(&:present?) return query if value == ["all"] column = column_for(query) if value.any? query.where("#{column} IN (?)", value) else query end end end
Version data entries
8 entries across 8 versions & 1 rubygems