From 62f3f7373844185e763e1430926ebf880b0d5cb5 Mon Sep 17 00:00:00 2001 From: spag Date: Tue, 12 Feb 2013 17:03:15 +0100 Subject: display whois information --- app/controllers/intruders_controller.rb | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'app/controllers/intruders_controller.rb') diff --git a/app/controllers/intruders_controller.rb b/app/controllers/intruders_controller.rb index eb34f2b..708e11a 100644 --- a/app/controllers/intruders_controller.rb +++ b/app/controllers/intruders_controller.rb @@ -5,6 +5,12 @@ class IntrudersController < ApplicationController def show @intruder = Intruder.find(params[:id]) + if ! params[:whois].blank? + @whois = @intruder.whois(params[:whois]) + if @whois.blank? + @whois = 'no information' + end + end end def new -- cgit v1.2.3