summaryrefslogtreecommitdiff
path: root/app/models/route_element.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-16 23:08:08 +0100
committerspag <spag@golwen.net>2013-01-16 23:08:08 +0100
commita8a0c40dfae8844162bd472faa9badc38d30d2d5 (patch)
treeb2f4d52e5c1d845e351ca119322cd2f4802dc3fd /app/models/route_element.rb
parent046ce09895a08778c971052f6d22ecd6422aee6d (diff)
acts_as_list
Diffstat (limited to 'app/models/route_element.rb')
-rw-r--r--app/models/route_element.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/route_element.rb b/app/models/route_element.rb
index 11bb54a..6f6fd3f 100644
--- a/app/models/route_element.rb
+++ b/app/models/route_element.rb
@@ -3,6 +3,8 @@ class RouteElement < ActiveRecord::Base
belongs_to :call_route
+ acts_as_list :scope => :call_route
+
def to_s
"#{var_in} #{var_out}"
end