Sha256: 1a2070ef53b1095fdc759828e20b78147e1dce576528a5546abd40de0515cdca

Contents?: true

Size: 301 Bytes

Versions: 14

Compression:

Stored size: 301 Bytes

Contents

module Dorsale
  module SmallData
    class FilterStrategyByDateEnd < ::Dorsale::SmallData::FilterStrategyByKeyValue
      def apply(query, value)
        value = Time.parse(value).end_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_end.rb
dorsale-3.0.2 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-3.0.1 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-3.0.0 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.7.3 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.7.2 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.7.1 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.7.0 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.6.8 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.6.7 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.6.6 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.6.5 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.6.4 app/models/dorsale/small_data/filter_strategy_by_date_end.rb
dorsale-2.6.3 app/models/dorsale/small_data/filter_strategy_by_date_end.rb