[UPDATE] Module Found Eror
This commit is contained in:
parent
9d73f3f23d
commit
8892d0da92
|
@ -63,7 +63,7 @@ module ActsAsFollowable
|
|||
end
|
||||
|
||||
def followings(followable_type)
|
||||
return followable_type.where(id: self.follows.where(followable_type: followable_type).pluck(:followable_id))
|
||||
return followable_type.constantize.where(id: self.follows.where(followable_type: followable_type).pluck(:followable_id))
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Reference in New Issue