增加poll colsed_at的赋值
This commit is contained in:
parent
97c7ccac16
commit
fe06ca503a
|
@ -342,6 +342,7 @@ class PollController < ApplicationController
|
|||
#关闭问卷
|
||||
def close_poll
|
||||
@poll.polls_status = 3
|
||||
@poll.closed_at = Time.now
|
||||
if @poll.save
|
||||
respond_to do |format|
|
||||
format.js
|
||||
|
|
Loading…
Reference in New Issue