Welcome to mirror list, hosted at ThFree Co, Russian Federation.

feature_constrainer.rb « constraints « lib - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
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