New Feature: Themen/Informationen

This commit is contained in:
HausdorffHimself
2013-08-05 18:31:04 +02:00
parent e3f7d7e472
commit ac4cb5d0fe
96 changed files with 2139 additions and 0 deletions

10
app/models/thema.rb Normal file
View File

@@ -0,0 +1,10 @@
class Thema < ActiveRecord::Base
has_paper_trail
attr_accessible :text, :title
has_many :fragen
has_many :attachments
belongs_to :themengruppe
validates :themengruppe, :presence => true
validates :title, :presence => true
end