summaryrefslogtreecommitdiff
path: root/app/models/gateway.rb
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-02-09 09:50:54 +0100
committerspag <spag@golwen.net>2013-02-09 09:50:54 +0100
commitdb31cc867b1e99b4d388b1835dbaec2ad845c29a (patch)
tree8b97caed9d610cd05f3d00867ca17fbe36510ca6 /app/models/gateway.rb
parent72e22a8aaf7ad212ed888b7d5a7c94d1c9cbd6b2 (diff)
gateway has routes
Diffstat (limited to 'app/models/gateway.rb')
-rw-r--r--app/models/gateway.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/gateway.rb b/app/models/gateway.rb
index a8df41f..eea1e33 100644
--- a/app/models/gateway.rb
+++ b/app/models/gateway.rb
@@ -5,6 +5,7 @@ class Gateway < ActiveRecord::Base
has_many :gateway_settings, :dependent => :destroy
has_many :gateway_parameters, :dependent => :destroy
+ has_many :call_routes, :as => :endpoint, :dependent => :nullify
validates :name,
:presence => true,