summaryrefslogtreecommitdiff
path: root/app/models/call_route.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-16 23:08:13 +0100
committerspag <spag@golwen.net>2013-01-16 23:08:13 +0100
commitf7f1785023f6fa52775c7ab2796fc247bf1ab15f (patch)
tree4cdd5adc74d8c022d78a19de13cf5cfdf80e2881 /app/models/call_route.rb
parenta8a0c40dfae8844162bd472faa9badc38d30d2d5 (diff)
acts_as_list
Diffstat (limited to 'app/models/call_route.rb')
-rw-r--r--app/models/call_route.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/call_route.rb b/app/models/call_route.rb
index de0f68a..e423030 100644
--- a/app/models/call_route.rb
+++ b/app/models/call_route.rb
@@ -6,6 +6,8 @@ class CallRoute < ActiveRecord::Base
validates :name,
:presence => true
+ acts_as_list :scope => '`table` = \'#{table}\''
+
def to_s
name.to_s
end