summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
Diffstat (limited to 'app/models')
-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,