diff options
Diffstat (limited to 'lib/constraints/feature_constrainer.rb')
-rw-r--r-- | lib/constraints/feature_constrainer.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/constraints/feature_constrainer.rb b/lib/constraints/feature_constrainer.rb index 5f8d97c8cdc..cd246cf37a4 100644 --- a/lib/constraints/feature_constrainer.rb +++ b/lib/constraints/feature_constrainer.rb @@ -2,14 +2,14 @@ module Constraints class FeatureConstrainer - attr_reader :feature, :thing, :default_enabled + attr_reader :args - def initialize(feature, thing, default_enabled) - @feature, @thing, @default_enabled = feature, thing, default_enabled + def initialize(*args) + @args = args end def matches?(_request) - Feature.enabled?(feature, @thing, default_enabled: true) + Feature.enabled?(*args) end end end |