NEW: Uploader

This commit is contained in:
HausdorffHimself
2013-08-27 18:34:55 +02:00
parent b42e490f7f
commit 348c81b856
2 changed files with 57 additions and 1 deletions

View File

@@ -14,7 +14,7 @@ class Attachment < ActiveRecord::Base
has_paper_trail
attr_accessible :name, :datei
belongs_to :thema
mount_uploader :datei, BeispieldateiUploader
mount_uploader :datei, AttachmentUploader
validates :thema, :presence => true
validates :name, :presence => true
end