summaryrefslogtreecommitdiff
path: root/app/controllers/call_routes_controller.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-17 17:50:47 +0100
committerspag <spag@golwen.net>2013-01-17 17:50:47 +0100
commit24e47521f1a57c73dc349de35909af7e1f8a4a1f (patch)
treeefa33a15f8182984c3768f3b5c4e2729d7b26e21 /app/controllers/call_routes_controller.rb
parenta36e8ea2bf092a23530b0ad54504667caa94e788 (diff)
group by table
Diffstat (limited to 'app/controllers/call_routes_controller.rb')
-rw-r--r--app/controllers/call_routes_controller.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index 41abe6d..b0c173d 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -4,6 +4,8 @@ class CallRoutesController < ApplicationController
before_filter :spread_breadcrumbs
def index
+ @call_routes = CallRoute.order(['`table`', :position])
+ @tables = @call_routes.pluck('`table`').uniq.sort
end
def show