diff options
| author | Michel Etienne | 2012-09-03 16:38:08 +0200 | 
|---|---|---|
| committer | Michel Etienne | 2012-09-03 16:38:08 +0200 | 
| commit | df33fee5452c94eaf55ead124fb0ed2cb6690ef6 (patch) | |
| tree | 28cb14c806e157b3475dda1f91808a81e069686a /app/models/referential.rb | |
| parent | 8947fae26d69b4380075a1f82376174fa81cb695 (diff) | |
| download | chouette-core-df33fee5452c94eaf55ead124fb0ed2cb6690ef6.tar.bz2 | |
organisation mandatory for referentials
Diffstat (limited to 'app/models/referential.rb')
| -rw-r--r-- | app/models/referential.rb | 1 | 
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/referential.rb b/app/models/referential.rb index b87ba81e8..ab4290cdd 100644 --- a/app/models/referential.rb +++ b/app/models/referential.rb @@ -22,6 +22,7 @@ class Referential < ActiveRecord::Base    has_many :exports, :dependent => :destroy    belongs_to :organisation +  validates_presence_of :organisation    def slug_excluded_values      if ! slug.nil?  | 
