diff options
author | spag <spag@golwen.net> | 2013-01-16 23:08:13 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-16 23:08:13 +0100 |
commit | f7f1785023f6fa52775c7ab2796fc247bf1ab15f (patch) | |
tree | 4cdd5adc74d8c022d78a19de13cf5cfdf80e2881 /app/models/call_route.rb | |
parent | a8a0c40dfae8844162bd472faa9badc38d30d2d5 (diff) |
acts_as_list
Diffstat (limited to 'app/models/call_route.rb')
-rw-r--r-- | app/models/call_route.rb | 2 |
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 |