Add surveys to proposal todo list

This commit is contained in:
Andrew Kvalheim 2023-03-14 17:00:53 -07:00
parent f8d6283f44
commit 1260786a62
8 changed files with 25 additions and 2 deletions

View file

@ -36,4 +36,8 @@ class Survey < ActiveRecord::Base
def closed?
!active?
end
def replied?(user_id)
survey_submissions.where(user_id: user_id).any?
end
end