diff --git a/lib/rollout_ui/wrapper.rb b/lib/rollout_ui/wrapper.rb index ca11666..469817a 100644 --- a/lib/rollout_ui/wrapper.rb +++ b/lib/rollout_ui/wrapper.rb @@ -3,6 +3,7 @@ class Wrapper class NoRolloutInstance < StandardError; end attr_reader :rollout + delegate :features, to: :rollout def initialize(rollout = nil) @rollout = rollout || RolloutUi.rollout @@ -17,11 +18,6 @@ def add_feature(feature) redis.sadd(:features, feature) end - def features - features = redis.smembers(:features) - features ? features.sort : [] - end - def redis rollout.instance_variable_get("@storage") end