Sha256: 2ec11de1a6f0a05b51920a1a442ab08f83abe56dccd911877f0d3274c0545b19

Contents?: true

Size: 193 Bytes

Versions: 17

Compression:

Stored size: 193 Bytes

Contents

class BMC::Filter::ByDateEnd < BMC::Filter::ByKeyValue
  def apply(query, value)
    value = Date.parse(value)
    column = column_for(query)
    query.where("#{column} <= ?", value)
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bmc-1.5.1 app/filters/bmc/filter/by_date_end.rb
bmc-1.5.0 app/filters/bmc/filter/by_date_end.rb
bmc-1.4.3 app/filters/bmc/filter/by_date_end.rb
bmc-1.4.2 app/filters/bmc/filter/by_date_end.rb
bmc-1.4.1 app/filters/bmc/filter/by_date_end.rb
bmc-1.4.0 app/filters/bmc/filter/by_date_end.rb
bmc-1.3.5 app/filters/bmc/filter/by_date_end.rb
bmc-1.3.4 app/filters/bmc/filter/by_date_end.rb
bmc-1.3.3 app/filters/bmc/filter/by_date_end.rb
bmc-1.3.2 app/filters/bmc/filter/by_date_end.rb
bmc-1.3.1 app/filters/bmc/filter/by_date_end.rb
bmc-1.3.0 app/filters/bmc/filter/by_date_end.rb
bmc-1.2.1 app/filters/bmc/filter/by_date_end.rb
bmc-1.2.0 app/filters/bmc/filter/by_date_end.rb
bmc-1.1.0 app/filters/bmc/filter/by_date_end.rb
bmc-1.0.1 app/filters/bmc/filter/by_date_end.rb
bmc-1.0.0 app/filters/bmc/filter/by_date_end.rb