Use a memory repository by default

master
Guillaume Dott 2014-08-18 10:49:00 +02:00
parent e4b4063822
commit f443c28fc8
1 changed files with 5 additions and 1 deletions

View File

@ -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)