Sha256: 7ef9fe6d32bf74e989a796000218ba33b027b5ed6bf7544c0c65bd3c53336435

Contents?: true

Size: 191 Bytes

Versions: 11

Compression:

Stored size: 191 Bytes

Contents

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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dorsale-3.4.0 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.3.0 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.2.0 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.7 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.6 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.5 app/filters/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.4 app/models/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.3 app/models/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.2 app/models/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.1 app/models/dorsale/flyboy/small_data/filter_strategy_by_done.rb
dorsale-3.1.0 app/models/dorsale/flyboy/small_data/filter_strategy_by_done.rb