Sha256: aefd2023029cee426d03c8299f0646edbbdef0258df172eac700c84fd92c3d90
Contents?: true
Size: 413 Bytes
Versions: 15
Compression:
Stored size: 413 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 # 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
15 entries across 15 versions & 1 rubygems