lib/flip/declarable.rb in flip-0.0.1.alpha vs lib/flip/declarable.rb in flip-0.0.1.alpha2
- old
+ new
@@ -1,7 +1,11 @@
module Flip
module Declarable
+ def self.extended(base)
+ FeatureSet.reset
+ end
+
# Adds a new feature definition, creates predicate method.
def feature(key, options = {})
FeatureSet.instance << Flip::Definition.new(key, options)
end