Sha256: 131b49bc2c7616fc82a0be16756783a506fa4bc452b7e02ca1569699ede0931e
Contents?: true
Size: 415 Bytes
Versions: 42
Compression:
Stored size: 415 Bytes
Contents
#redis.rb cnfg = nil REDIS_CONFIG = YAML.load( File.open( Rails.root.join("config/redis.yml") ) ).symbolize_keys dflt = REDIS_CONFIG[:default].symbolize_keys cnfg = dflt.merge(REDIS_CONFIG[Rails.env.to_sym].symbolize_keys) if REDIS_CONFIG[Rails.env.to_sym] $redis = Redis.new(cnfg) # To clear out the db before each test puts "FLUSHING REDIS DB SINCE ENV IS DEVELOPMENT." $redis.flushdb if Rails.env = "development"
Version data entries
42 entries across 42 versions & 1 rubygems