[UPDATE] Module Found Eror

This commit is contained in:
w-zengtao 2018-03-29 19:44:29 +08:00
parent 9d73f3f23d
commit 8892d0da92
1 changed files with 1 additions and 1 deletions

View File

@ -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