Skip to content
Browse files

type matching is now more lenient

  • Loading branch information...
1 parent fc79d13 commit d0b315f2770784971a2edd1b7e4d5b62f7327bf8 @cmer committed
Showing with 3 additions and 4 deletions.
  1. +3 −4 lib/socialization/stores/redis/base.rb
7 lib/socialization/stores/redis/base.rb
@@ -83,12 +83,11 @@ def remove_victim_relations(actor)
def key_type_to_type_names(klass)
- case
- when "Socialization::RedisStores::Follow"
+ if$/)
['follower', 'followable']
- when "Socialization::RedisStores::Like"
+ elsif$/)
['liker', 'likeable']
- when "Socialization::RedisStores::Mention"
+ elsif$/)
['mentioner', 'mentionable']
raise"Can't find matching type for #{klass}.")

1 comment on commit d0b315f


If save data in redis, how to backup it ?

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