lib/flipper/toggle.rb in flipper-0.2.1 vs lib/flipper/toggle.rb in flipper-0.3.0
- old
+ new
@@ -11,18 +11,24 @@
def initialize(gate)
@gate = gate
end
def enable(thing)
- raise 'Not implemented'
+ add_feature_to_set
end
def disable(thing)
- raise 'Not implemented'
+ add_feature_to_set
end
def value
raise 'Not implemented'
+ end
+
+ private
+
+ def add_feature_to_set
+ adapter.feature_add key.prefix
end
end
end
require 'flipper/toggles/boolean'