Sha256: 50b8c3f76d5dfaa2a6b8d0733ba4c108c6dc0e24ba49b6e9e63abe6d616c7e08

Contents?: true

Size: 250 Bytes

Versions: 10

Compression:

Stored size: 250 Bytes

Contents

class Dorsale::Flyboy::SmallData::FilterStrategyByStatus < ::Dorsale::SmallData::FilterStrategy
  def apply(query, value)
    if value == "closed"
      query.where(status: "closed")
    else
      query.where.not(status: "closed")
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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