Saveguaring Modul und LVA

This commit is contained in:
Thomas Blazek
2013-07-24 21:47:57 +02:00
parent e695eb4f47
commit 4aaaa286f3
2 changed files with 8 additions and 2 deletions

View File

@@ -16,6 +16,8 @@ class Modul < ActiveRecord::Base
has_and_belongs_to_many :lvas
has_and_belongs_to_many :modulgruppen
validates :modulgruppen, :presence=>true
validates_presence_of :name
translates :desc,:depend,:name, :versioning =>true, :fallbacks_for_empty_translations => true
end