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

Version Path
wordjelly-auth-1.6.0 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.9 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.8 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.7 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.6 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.5 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.4 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.3 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.2 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.1 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.5.0 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.4.9 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.4.8 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.4.7 spec/dummy/config/initializers/redis.rb
wordjelly-auth-1.4.6 spec/dummy/config/initializers/redis.rb