forked from bofh/fetsite
lvas bei modulgruppen und studium hinzugefügt
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user