summaryrefslogtreecommitdiff
path: root/lib/constraints/feature_constrainer.rb
blob: cd246cf37a4e55ea148e43f9341c306bbbf70e1c (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 :args

    def initialize(*args)
      @args = args
    end

    def matches?(_request)
      Feature.enabled?(*args)
    end
  end
end