This commit is contained in:
albert
2013-01-14 14:47:34 -05:00
parent 055ed2aba1
commit 9aad80e956
3 changed files with 6 additions and 2 deletions

View File

@@ -454,6 +454,10 @@ class User < ActiveRecord::Base
q = q.where("level >= ?", params[:min_level].to_i)
end
if params[:id]
q = q.where("id = ?", params[:id].to_i)
end
q
end
end