Skip to content
Browse files

okay. since we are upgrading to redis 2.0, I will add this idiotic ch…

…ange
  • Loading branch information...
1 parent e02f6bb commit f00d641f5c42e882f12e1cda3751c9ffe1263502 @jamesgolick jamesgolick committed Nov 1, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rollout.rb
View
2 lib/rollout.rb
@@ -62,7 +62,7 @@ def percentage_key(name)
end
def user_in_active_group?(feature, user)
- @redis.smembers(group_key(feature)).any? { |group| @groups.key?(group) && @groups[group].call(user) }
+ (@redis.smembers(group_key(feature)) || []).any? { |group| @groups.key?(group) && @groups[group].call(user) }
end
def user_active?(feature, user)

0 comments on commit f00d641

Please sign in to comment.
Something went wrong with that request. Please try again.