From f443c28fc8b8780784cf03d509df353dabbe9987 Mon Sep 17 00:00:00 2001 From: Guillaume DOTT Date: Mon, 18 Aug 2014 10:49:00 +0200 Subject: [PATCH] Use a memory repository by default --- lib/flop.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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)