fixes to model searches

This commit is contained in:
albert
2013-02-19 12:27:17 -05:00
parent e678427ee7
commit e0fdda3103
21 changed files with 68 additions and 68 deletions

View File

@@ -8,11 +8,11 @@ module Moderator
end
def execute
if params[:user_id]
if params[:user_id].present?
search_by_user_id(params[:user_id].split(/,/))
elsif params[:user_name]
elsif params[:user_name].present?
search_by_user_name(params[:user_name].split(/,/))
elsif params[:ip_addr]
elsif params[:ip_addr].present?
search_by_ip_addr(params[:ip_addr].split(/,/))
else
[]