Sha256: acdb518831082ce74e8a4e0a96945fd43933e406a119ce11d4faf7ea64a31ed2
Contents?: true
Size: 344 Bytes
Versions: 26
Compression:
Stored size: 344 Bytes
Contents
require 'resque' config = YAML.load(ERB.new(IO.read(File.join(Rails.root, 'config', 'redis.yml'))).result)[Rails.env].with_indifferent_access Resque.redis = Redis.new(host: config[:host], port: config[:port], thread_safe: true) Resque.inline = Rails.env.test? Resque.redis.namespace = "#{CurationConcerns.config.redis_namespace}:#{Rails.env}"
Version data entries
26 entries across 26 versions & 2 rubygems