Sha256: 5d3a8daa6888905f483ddb0f7474c02e1f26fa88ff4ea12ae40b31ed6f3fcde9
Contents?: true
Size: 322 Bytes
Versions: 1
Compression:
Stored size: 322 Bytes
Contents
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 = "#{Sufia::Engine.config.id_namespace}:#{Rails.env}"
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-3.1.0 | lib/generators/sufia/templates/config/resque_config.rb |