ADD: picture to themengruppe

This commit is contained in:
HausdorffHimself
2013-08-23 13:40:42 +02:00
parent e87f108d8a
commit 7a18a53cc8
4 changed files with 10 additions and 1 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