Skip to content

Commit 2406429

Browse files
committed
Use clear to reset features
1 parent eb5641d commit 2406429

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

app/controllers/demo_controller.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
class DemoController < ApplicationController
22
def reset
3-
Flipper.features.each(&:disable)
4-
Flipper.disable_percentage_of_actors(:slow_roll)
5-
Flipper.disable_percentage_of_time(:slow_roll)
3+
Flipper.features.each(&:clear)
64
reset_session
75

86
flash[:notice] = "The demo is reset and ready to go through again."

0 commit comments

Comments
 (0)