comment updates
This commit is contained in:
@ -4,4 +4,8 @@ class QuizComment < ApplicationRecord
|
||||
belongs_to :candidate, foreign_key: :test_hash, primary_key: :test_hash
|
||||
|
||||
validates :message, presence: true
|
||||
|
||||
def edits?
|
||||
updated_at > (created_at + 5.seconds)
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user