summaryrefslogtreecommitdiff
path: root/app/models/call_route.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-01-16 08:38:54 -0500
committerPeter Kozak <spag@golwen.net>2013-01-16 08:38:54 -0500
commit0bf4d1350f5d2a07db874977674e5ae0ff0d4256 (patch)
tree531a55cbe651ba0effaeda6670d51ab89ee25a61 /app/models/call_route.rb
parent8c83a89c6fbfdb31cae8ea6fcf2fd50c12c076a5 (diff)
route_elements belong to route
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 4cf2445..eba247c 100644
--- a/app/models/call_route.rb
+++ b/app/models/call_route.rb
@@ -1,3 +1,5 @@
class CallRoute < ActiveRecord::Base
attr_accessible :table, :name, :endpoint_type, :endpoint_id, :position
+
+ has_many :route_elements, :dependent => :destroy
end