lvas bei modulgruppen und studium hinzugefügt

This commit is contained in:
Andreas Stephanides
2014-04-07 10:07:41 +02:00
parent 8c284e6363
commit a9cfc39bae
2 changed files with 3 additions and 2 deletions

View File

@@ -16,7 +16,7 @@ class Modulgruppe < ActiveRecord::Base
attr_accessible :name, :phase, :typ,:desc, :studium_id, :modul_ids
belongs_to :studium, :foreign_key => "studium_id"
has_and_belongs_to_many :moduls
has_many :lvas, :through=>:moduls
resourcify
validates :studium_id, :presence => true # Bei der Abfrage ist student_id entscheidend