forked from bofh/fetsite
New Feature: Themen/Informationen
This commit is contained in:
10
app/models/thema.rb
Normal file
10
app/models/thema.rb
Normal 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
|
||||
Reference in New Issue
Block a user