Check polymorphic type in validations
* Previously, some models had "duplicated" `belongs_to` associations, which were now removed (and replaced by the `include Creation`).
This commit is contained in:

committed by
Sebastian Serth

parent
be4f2b790d
commit
977fa4539e
@@ -8,7 +8,6 @@ class Comment < ApplicationRecord
|
||||
attr_accessor :username, :date, :updated, :editable
|
||||
|
||||
belongs_to :file, class_name: 'CodeOcean::File'
|
||||
belongs_to :user, polymorphic: true
|
||||
# after_save :trigger_rfc_action_cable_from_comment
|
||||
|
||||
def request_for_comment
|
||||
|
Reference in New Issue
Block a user