This commit is contained in:
Toks
2013-04-28 14:11:21 -04:00
parent 43a2525099
commit 636ac9c727
2 changed files with 9 additions and 0 deletions

View File

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