voting requires a comment - completes #102
This commit is contained in:
@ -19,6 +19,10 @@ class User < ApplicationRecord
|
||||
save
|
||||
end
|
||||
|
||||
def commented_on? test_hash
|
||||
quiz_comments.where(test_hash: test_hash).count.positive?
|
||||
end
|
||||
|
||||
# Voting
|
||||
# TODO: Refactor this out of User, belongs on ReviewerVote
|
||||
# ie: cast_yea(candidate, user)
|
||||
|
Reference in New Issue
Block a user