lib/scout/config.rb in scout-gear-9.0.0 vs lib/scout/config.rb in scout-gear-9.1.0
- old
+ new
@@ -2,10 +2,10 @@
require_relative 'resource'
require_relative 'resource/scout'
module Scout::Config
- CACHE = IndiferentHash.setup({})
+ CACHE ||= IndiferentHash.setup({})
GOT_KEYS=[]
def self.add_entry(key, value, tokens)
tokens = [tokens] unless Array === tokens