Skip to content

Instantly share code, notes, and snippets.

@kronos
Created August 10, 2010 13:50
Show Gist options
  • Save kronos/517290 to your computer and use it in GitHub Desktop.
Save kronos/517290 to your computer and use it in GitHub Desktop.
From 9c6004b95f5a07bd35ba5b104b4fefc103d3d525 Mon Sep 17 00:00:00 2001
From: Ivan Samsonov <[email protected]>
Date: Tue, 10 Aug 2010 17:50:12 +0400
Subject: [PATCH] Fix compability with new resque
---
lib/redisk.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/redisk.rb b/lib/redisk.rb
index 08a18b1..80f9bd8 100644
--- a/lib/redisk.rb
+++ b/lib/redisk.rb
@@ -18,7 +18,7 @@ module Redisk
host, port = server.split(':')
redis = Redis.new(:host => host, :port => port, :thread_safe => true)
@redis = Redis::Namespace.new(:redisk, :redis => redis)
- when Redis
+ when Redis, Redis::Namespace
@redis = Redis::Namespace.new(:redisk, :redis => server)
else
raise "I don't know what to do with #{server.inspect}"
--
1.6.6.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment