mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Redirect /checkout/whatever to /checkout when split_checkout is activate
+ constraint the legacy checkout routes when `split_checkout` feature is disabled + add specs
This commit is contained in:
committed by
Filipe
parent
ee70645d04
commit
b2db63178f
@@ -12,5 +12,9 @@ module OpenFoodNetwork
|
||||
feature.add unless feature.exist?
|
||||
feature.enabled?(user)
|
||||
end
|
||||
|
||||
def self.disabled?(feature_name, user = nil)
|
||||
!enabled?(feature_name, user)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user