ADD: picture to themengruppe
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user