Permalink
Browse files

Merge branch 'master' of github.com:cmer/socialization

  • Loading branch information...
2 parents 9e574e2 + 1f856c1 commit bed2653911a668aed7747949f1ac283b7a8481fd @cmer committed Aug 20, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 lib/socialization/stores/redis/base.rb
@@ -8,6 +8,7 @@ def actors(victim, klass, options = {})
if options[:pluck]
Socialization.redis.smembers(generate_forward_key(victim)).inject([]) do |result, element|
result << element.match(/\:(\d+)$/)[1] if element.match(/^#{klass}\:/)
+ result
end
else
actors_relation(victim, klass, options).all
@@ -28,6 +29,7 @@ def victims(actor, klass, options = {})
if options[:pluck]
Socialization.redis.smembers(generate_backward_key(actor)).inject([]) do |result, element|
result << element.match(/\:(\d+)$/)[1] if element.match(/^#{klass}\:/)
+ result
end
else
victims_relation(actor, klass, options).all

0 comments on commit bed2653

Please sign in to comment.