comment updates
This commit is contained in:
1 parent
39ba1a8369
commit
906b62247b
6 files changed
+110
-11
No files matched your search
@@ -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