#2217 fix ambiguous table reference

This commit is contained in:
Toks
2014-08-03 16:38:05 -04:00
parent 993094edf1
commit ed6ed14a79

View File

@@ -115,7 +115,7 @@ class PostQueryBuilder
end
if CurrentUser.safe_mode?
relation = relation.where(:rating => "s")
relation = relation.where("posts.rating = 's'")
end
relation = add_range_relation(q[:post_id], "posts.id", relation)