rfc can now be solved.

show.html still needs to be finished
This commit is contained in:
Ralf Teusner
2016-06-24 16:44:34 +02:00
parent bd6d4c4d71
commit 2a52b66daa
8 changed files with 58 additions and 8 deletions

View File

@ -1,7 +1,7 @@
class RequestForComment < ActiveRecord::Base
include Creation
belongs_to :exercise
belongs_to :file, class_name: 'CodeOcean::File'
belongs_to :user, polymorphic: true
before_create :set_requested_timestamp