Use a memory repository by default
parent
e4b4063822
commit
f443c28fc8
|
@ -6,7 +6,11 @@ require 'flop/repository/redis'
|
||||||
|
|
||||||
module Flop
|
module Flop
|
||||||
class << self
|
class << self
|
||||||
attr_accessor :repo
|
attr_writer :repo
|
||||||
|
|
||||||
|
def repo
|
||||||
|
@repo ||= Flop::Repository::Memory.new
|
||||||
|
end
|
||||||
|
|
||||||
def [](feature)
|
def [](feature)
|
||||||
Flop::Feature.new(feature)
|
Flop::Feature.new(feature)
|
||||||
|
|
Loading…
Reference in New Issue