Merge commenting support

This commit is contained in:
Felix Wolff
2015-03-27 11:57:35 +01:00
parent 6e5e9a6634
commit a70053532b
9 changed files with 122 additions and 0 deletions

6
app/models/comment.rb Normal file
View File

@@ -0,0 +1,6 @@
class Comment < ActiveRecord::Base
# inherit the creation module: encapsulates that this is a polymorphic user, offers some aliases and makes sure that all necessary attributes are set.
include Creation
belongs_to :file, class: CodeOcean::File
end