Permalink
Browse files

Fixes incorrect set coercion.

The "to_i" was causing group flippers to fail as their name (a string) would incorrectly get coerced into a integer (usually 0).
  • Loading branch information...
1 parent cfbadd9 commit 8dbc08926268b58ebe0b50663235946fadb02332 @chrislloyd chrislloyd committed Nov 21, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/flipper/adapters/redis.rb
@@ -29,7 +29,7 @@ def set_delete(key, value)
end
def set_members(key)
- @client.smembers(key.to_s).map { |member| member.to_i }.to_set
+ @client.smembers(key.to_s).to_set
end
end
end

0 comments on commit 8dbc089

Please sign in to comment.