manager: improve code to hide production features
This commit is contained in:
parent
550885f396
commit
b02d50dac8
1 changed files with 6 additions and 6 deletions
|
@ -6,9 +6,9 @@
|
|||
end
|
||||
|
||||
%table#features
|
||||
- Flipflop.feature_set.features.each do |feature|
|
||||
- if !feature.group || feature.group.key != :production
|
||||
%tr
|
||||
%td= feature.title
|
||||
%td
|
||||
= check_box_tag "enable-feature", "enable", field.data[feature.name], data: { url: url, key: feature.key }
|
||||
- admin_features = Flipflop.feature_set.features.reject{ |f| f.group.try(:key) == :production }
|
||||
- admin_features.each do |feature|
|
||||
%tr
|
||||
%td= feature.title
|
||||
%td
|
||||
= check_box_tag "enable-feature", "enable", field.data[feature.name], data: { url: url, key: feature.key }
|
||||
|
|
Loading…
Reference in a new issue