summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-08-03 11:29:27 +0200
committerPeter Kozak <spag@golwen.net>2013-08-03 11:29:27 +0200
commit439b8064546561c15fdd457c9236484c3254df0d (patch)
treebd77e7d662808c3ec939aeb897502f4101561021
parent79b27f095972e27fdfea6bca9d3088f0384da3a1 (diff)
gateway has_many gateway_headers
-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 01b29b2..0360795 100644
--- a/app/models/gateway.rb
+++ b/app/models/gateway.rb
@@ -6,6 +6,7 @@ class Gateway < ActiveRecord::Base
has_many :gateway_settings, :dependent => :destroy
has_many :gateway_parameters, :dependent => :destroy
+ has_many :gateway_headers, :dependent => :destroy
has_many :call_routes, :as => :endpoint, :dependent => :nullify
validates :name,