blob: 05d48b0f25a366d67710466b3cf2dbf77a9289fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
module Constraints
class FeatureConstrainer
attr_reader :feature
def initialize(feature)
@feature = feature
end
def matches?(_request)
Feature.enabled?(feature)
end
end
end
|