Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

specify table name in sql

  • Loading branch information...
commit 12fb9fd3ac8b9e3425afce782ea92f15564e556a 1 parent d0b315f
@cmer authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/socialization/stores/redis/base.rb
View
4 lib/socialization/stores/redis/base.rb
@@ -16,12 +16,12 @@ def actors(victim, klass, options = {})
def actors_relation(victim, klass, options = {})
ids = actors(victim, klass, :pluck => :id)
- klass.where('id IN (?)', ids)
+ klass.where("#{klass.table_name}.id IN (?)", ids)
end
def victims_relation(actor, klass, options = {})
ids = victims(actor, klass, :pluck => :id)
- klass.where('id IN (?)', ids)
+ klass.where("#{klass.table_name}.id IN (?)", ids)
end
def victims(actor, klass, options = {})
Please sign in to comment.
Something went wrong with that request. Please try again.