Sha256: 5dde6191d6bf9fd9b420cc21b20ba16a5e03e314eab528e9efdfcc01cfa72779

Contents?: true

Size: 192 Bytes

Versions: 9

Compression:

Stored size: 192 Bytes

Contents

class Dorsale::Flyboy::SmallData::FilterStrategyByDone < ::Agilibox::SmallData::FilterStrategy
  def apply(query, value)
    value = (value == "closed")
    query.where(done: value)
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
dorsale-3.7.4 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.7.2 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.7.1 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.7.0 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.6.1 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.6.0 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.5.2 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.5.1 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.5.0 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb