summaryrefslogtreecommitdiff
path: root/app/controllers/intruders_controller.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-03 04:03:24 -0500
committerPeter Kozak <spag@golwen.net>2013-03-03 04:03:24 -0500
commitb8425f5453eab4a0fe475952af89d55ace45878e (patch)
treee3c94e998ae382fb33e26a529327bc3368b64b3b /app/controllers/intruders_controller.rb
parent6ed538ee9385245a7bbac838dd5b796bba2ea0c6 (diff)
firewall restart after intruder changes
Diffstat (limited to 'app/controllers/intruders_controller.rb')
-rw-r--r--app/controllers/intruders_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/intruders_controller.rb b/app/controllers/intruders_controller.rb
index d3c767e..bdda230 100644
--- a/app/controllers/intruders_controller.rb
+++ b/app/controllers/intruders_controller.rb
@@ -2,7 +2,8 @@ class IntrudersController < ApplicationController
load_and_authorize_resource :intruder
def index
- @intruders = Intruder.order('list_type ASC, contact_last DESC').all
+ @intruders = Intruder.order('list_type ASC, contact_last DESC')
+ @list_types = @intruders.pluck(:list_type).uniq.sort
spread_breadcrumbs
end