forked from bofh/fetsite
comments
This commit is contained in:
@@ -16,7 +16,7 @@ class Beispiel < ActiveRecord::Base
|
||||
attr_accessible :desc, :name, :lva_id, :beispieldatei, :beispieldatei_cache, :datum
|
||||
acts_as_votable
|
||||
belongs_to :lva
|
||||
|
||||
include IsCommentable
|
||||
mount_uploader :beispieldatei, AttachmentUploader
|
||||
validates :beispieldatei, :presence => true
|
||||
validates :name, :presence => true
|
||||
@@ -35,4 +35,7 @@ class Beispiel < ActiveRecord::Base
|
||||
"delete_type" => "DELETE"
|
||||
}
|
||||
end
|
||||
def divid
|
||||
"beispiel_"+id.to_s
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user