Sha256: 435fee47f3d749c39980609a907650fe5686e012c556b13b6e335ae807e30456

Contents?: true

Size: 221 Bytes

Versions: 29

Compression:

Stored size: 221 Bytes

Contents

class Agilibox::SmallData::FilterStrategyByDateEnd < ::Agilibox::SmallData::FilterStrategyByKeyValue
  def apply(query, value)
    value = Time.zone.parse(value).end_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_end.rb
agilibox-1.5.4 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.5.3 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.5.2 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.5.1 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.5.0 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.4.4 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.4.3 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.4.2 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.4.1 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.4.0 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.3.6 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.3.5 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.3.4 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.3.3 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.3.2 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.3.1 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.3.0 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.2.3 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb
agilibox-1.2.2 app/filters/agilibox/small_data/filter_strategy_by_date_end.rb