Files
fetsite/app/models/modul.rb
Andreas Stephanides 0216dbdaae Dokumentation hinzugefügt
annotation gem installiert und Dokumentation in app/doc eingefügt
2013-07-23 13:50:03 +02:00

22 lines
535 B
Ruby
Executable File

# == Schema Information
#
# Table name: moduls
#
# id :integer not null, primary key
# name :string(255)
# desc :text
# depend :text
# created_at :datetime not null
# updated_at :datetime not null
#
class Modul < ActiveRecord::Base
attr_accessible :desc,:name, :depend, :studium_id, :modulgruppe_ids
has_and_belongs_to_many :lvas
has_and_belongs_to_many :modulgruppen
translates :desc,:depend,:name, :versioning =>true, :fallbacks_for_empty_translations => true
end