gitlab-org--gitlab-foss/lib/constraints/feature_constrainer.rb
Bob Van Landuyt 2e8d0153cd Pass on arguments passed to the FeatureConstrainer
All arguments passed to the `FeatureConstrainer` will be passed on to
the `Feature.enabled?` check.
2018-12-14 14:35:05 +01:00

15 lines
229 B
Ruby

# 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