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

Version Path
dorsale-3.0.3 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-3.0.2 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-3.0.1 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-3.0.0 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.7.3 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.7.2 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.7.1 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.7.0 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.6.8 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.6.7 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.6.6 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.6.5 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.6.4 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb
dorsale-2.6.3 app/models/dorsale/small_data/filter_strategy_by_date_begin.rb