forked from bofh/fetsite
New Feature: Themen/Informationen
This commit is contained in:
8
app/models/themengruppe.rb
Normal file
8
app/models/themengruppe.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
class Themengruppe < ActiveRecord::Base
|
||||
has_paper_trail
|
||||
attr_accessible :text, :title
|
||||
has_many :themen
|
||||
has_many :fragen, through: :themen
|
||||
|
||||
validates :title, :presence => true
|
||||
end
|
||||
Reference in New Issue
Block a user