Sha256: ab6ee4d549a3717ce02d760a4fc084e6fd785366c9864fa6385abadb0ebd8c08

Contents?: true

Size: 229 Bytes

Versions: 29

Compression:

Stored size: 229 Bytes

Contents

class Agilibox::SmallData::FilterStrategyByDateBegin < ::Agilibox::SmallData::FilterStrategyByKeyValue
  def apply(query, value)
    value = Time.zone.parse(value).beginning_of_day
    query.where("#{key} >= ?", value)
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
agilibox-1.5.5 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.5.4 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.5.3 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.5.2 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.5.1 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.5.0 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.4.4 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.4.3 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.4.2 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.4.1 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.4.0 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.3.6 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.3.5 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.3.4 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.3.3 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.3.2 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.3.1 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.3.0 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.2.3 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb
agilibox-1.2.2 app/filters/agilibox/small_data/filter_strategy_by_date_begin.rb