AutoCommit Fre Jun 26 16:03:06 CEST 2015

This commit is contained in:
Andreas Stephanides
2015-06-26 16:03:06 +02:00
parent 2ca5f49436
commit f5cc774c92
3 changed files with 5 additions and 3 deletions

View File

@@ -44,6 +44,7 @@ class Lva < ActiveRecord::Base
has_and_belongs_to_many :modul,:uniq=>true # Gehört zu einem Modul
has_and_belongs_to_many :semester
has_many :beispiele , :class_name => "Beispiel"
has_and_belongs_to_many :lecturers
has_many :nlinks, as: :link
has_many :crawlobjects, :as=>:something
@@ -56,7 +57,7 @@ class Lva < ActiveRecord::Base
validates_presence_of :stunden # Stunden Eingetragen?
validates_presence_of :modul # Zugehöriges Modul eingetragen?
# (zumindest eines)
def typ_n
typ=="andere" ? "" : typ
end