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