manager: improve code to hide production features

This commit is contained in:
Pierre de La Morinerie 2018-11-12 11:28:18 +00:00
parent 550885f396
commit b02d50dac8

View file

@ -6,8 +6,8 @@
end
%table#features
- Flipflop.feature_set.features.each do |feature|
- if !feature.group || feature.group.key != :production
- admin_features = Flipflop.feature_set.features.reject{ |f| f.group.try(:key) == :production }
- admin_features.each do |feature|
%tr
%td= feature.title
%td