This commit is contained in:
Andreas Stephanides
2013-08-23 14:30:31 +02:00
7 changed files with 62 additions and 34 deletions

View File

@@ -11,9 +11,10 @@
class Themengruppe < ActiveRecord::Base
WORD_COUNT = 50
attr_accessible :text, :title
attr_accessible :text, :title, :picture
has_many :themen, class_name: 'Thema'
has_many :fragen, through: :themen
mount_uploader :picture, PictureUploader
validates :title, :presence => true