lib/rollout.rb in rolloutbr-2.0.7br vs lib/rollout.rb in rolloutbr-2.0.8br
- old
+ new
@@ -83,10 +83,11 @@
class << self
attr_accessor :storage_hash, :cleared
end
def initialize(storage, opts = {})
+ self.class.storage_hash = {}
@storage = storage
@groups = {:all => lambda { |user| true }}
@legacy = Legacy.new(@storage) if opts[:migrate]
end
@@ -196,9 +197,10 @@
yield(f)
save(f)
end
def save(feature)
+ self.class.storage_hash = {}
@storage.set(key(feature.name), feature.serialize)
@storage.set(features_key, (features | [feature.name]).join(","))
end
def migrate?