|
|
@ -99,7 +99,7 @@ class Poll < ApplicationRecord
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
|
|
def get_poll_status(user)s
|
|
|
|
def get_poll_status(user)
|
|
|
|
if course.end_date.present? && course.end_date <= Time.now
|
|
|
|
if course.end_date.present? && course.end_date <= Time.now
|
|
|
|
status = 4
|
|
|
|
status = 4
|
|
|
|
else
|
|
|
|
else
|
|
|
|