Sha256: b97469fa883055b1dbee003291e034ce55988cab54fe020c3f5b1dcaeff57d73
Contents?: true
Size: 309 Bytes
Versions: 14
Compression:
Stored size: 309 Bytes
Contents
module Dorsale module SmallData class FilterStrategyByDateBegin < ::Dorsale::SmallData::FilterStrategyByKeyValue def apply(query, value) value = Time.parse(value).beginning_of_day query.where("#{key} >= ?", value) end end # FilterStrategy end # SmallData end # Dorsale
Version data entries
14 entries across 14 versions & 1 rubygems