diff --git a/lib/flop.rb b/lib/flop.rb index 955939b..a478292 100644 --- a/lib/flop.rb +++ b/lib/flop.rb @@ -6,7 +6,11 @@ require 'flop/repository/redis' module Flop class << self - attr_accessor :repo + attr_writer :repo + + def repo + @repo ||= Flop::Repository::Memory.new + end def [](feature) Flop::Feature.new(feature)