# Load the redis configuration from resque.yml

Resque.redis = YAML.load_file(Rails.root.join("/config/resque.yml"))[Rails.env.to_s]

# Load the redis configuration from resque.yml
Resque.redis = YAML.load_file(File.join(Rails.root, "config", "resque.yml"))[Rails.env.to_s]

Use File to grab yml redis file
Use File to grab yml redis file

In Rails 4.0.0.rc1 and ruby 2.0.0-p0, the Rails.root doesn't extend
the path correctly via "Rails.root.join". This patch uses ruby's
File.join to join the dirs together into a correct, full path.
