summaryrefslogtreecommitdiff
path: root/lib/constraints/feature_constrainer.rb
blob: ca4376a9d3863b2ee38bc985244ec51994ecc31c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# frozen_string_literal: true

module Constraints
  class FeatureConstrainer
    attr_reader :feature

    def initialize(feature)
      @feature = feature
    end

    def matches?(_request)
      Feature.enabled?(feature)
    end
  end
end