aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/referential.rb
diff options
context:
space:
mode:
authorAlban Peignier2012-06-07 13:39:35 +0200
committerAlban Peignier2012-06-07 13:39:35 +0200
commit7c0ae629a2ea0079c8b5efbd4c41b6ca661eae91 (patch)
tree26195fe0d4eb8e77a89a9dadaf25626fc3f7fc50 /app/models/referential.rb
parent1d72c64b77c20d0d3b0bf4b05c40ba99a97493bd (diff)
downloadchouette-core-7c0ae629a2ea0079c8b5efbd4c41b6ca661eae91.tar.bz2
Add support for Exports. Refs #41
Diffstat (limited to 'app/models/referential.rb')
-rw-r--r--app/models/referential.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb
index 2d6d5b8d5..3f4a62bb6 100644
--- a/app/models/referential.rb
+++ b/app/models/referential.rb
@@ -9,6 +9,7 @@ class Referential < ActiveRecord::Base
validates_format_of :prefix, :with => %r{\A[0-9a-zA-Z_]+\Z}
has_many :imports, :dependent => :destroy
+ has_many :exports, :dependent => :destroy
def human_attribute_name(*args)
self.class.human_attribute_name(*args)