diff options
author | spag <spag@golwen.net> | 2013-02-09 09:50:54 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-02-09 09:50:54 +0100 |
commit | db31cc867b1e99b4d388b1835dbaec2ad845c29a (patch) | |
tree | 8b97caed9d610cd05f3d00867ca17fbe36510ca6 | |
parent | 72e22a8aaf7ad212ed888b7d5a7c94d1c9cbd6b2 (diff) |
gateway has routes
-rw-r--r-- | app/models/gateway.rb | 1 |
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, |