forked from bofh/fetsite
Merge branch 'master' of https://github.com/HausdorffHimself/fetsite
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
class Frage < ActiveRecord::Base
|
||||
attr_accessible :text, :title
|
||||
attr_accessible :text, :title, :thema_id
|
||||
belongs_to :thema
|
||||
|
||||
validates :thema, :presence => true
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class Themengruppe < ActiveRecord::Base
|
||||
WORD_COUNT = 50
|
||||
attr_accessible :text, :title
|
||||
has_many :themen, class_name: 'Thema'
|
||||
has_many :fragen, through: :themen
|
||||
|
||||
Reference in New Issue
Block a user