summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-17 21:51:58 +0100
committerspag <spag@golwen.net>2013-01-17 21:51:58 +0100
commit17206a20e5bcb44fa4d90f0e176f7aa0fe43bca3 (patch)
treeb16465034b16d2b1e00dc6ecf899f9fa063f0549 /app/controllers
parentb800f7c7ec5aa65f773d1c91c1418ca5edac0f2c (diff)
rename_column table to routing_table
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/call_routes_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/call_routes_controller.rb b/app/controllers/call_routes_controller.rb
index b0c173d..130a160 100644
--- a/app/controllers/call_routes_controller.rb
+++ b/app/controllers/call_routes_controller.rb
@@ -4,8 +4,8 @@ class CallRoutesController < ApplicationController
before_filter :spread_breadcrumbs
def index
- @call_routes = CallRoute.order(['`table`', :position])
- @tables = @call_routes.pluck('`table`').uniq.sort
+ @call_routes = CallRoute.order([:routing_table, :position])
+ @routing_tables = @call_routes.pluck(:routing_table).uniq.sort
end
def show