增加poll colsed_at的赋值

This commit is contained in:
sw 2015-01-27 09:55:02 +08:00
parent 97c7ccac16
commit fe06ca503a
1 changed files with 1 additions and 0 deletions

View File

@ -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