BUGFIX: IP lookup wasn't working when using HTTPS

REFACTOR: the ip locator into a ip-lookup component
This commit is contained in:
Régis Hanol
2014-07-07 22:18:18 +02:00
parent 18fafa12a2
commit 59b5ba7c0f
12 changed files with 125 additions and 64 deletions

View File

@ -40,7 +40,6 @@ class AdminUserIndexQuery
end
end
def filter_by_ip
if params[:ip].present?
@query.where('ip_address = :ip or registration_ip_address = :ip', ip: params[:ip])