Add surveys to proposal todo list
This commit is contained in:
parent
f8d6283f44
commit
1260786a62
8 changed files with 25 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue