From 774013abd3fe0d49eb2f85fac6b5375476428ffb Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Fri, 20 Mar 2020 20:45:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=85=B3=E5=8D=A1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/challenges_controller.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/controllers/challenges_controller.rb b/app/controllers/challenges_controller.rb index 4024a2629..527ba4f05 100644 --- a/app/controllers/challenges_controller.rb +++ b/app/controllers/challenges_controller.rb @@ -166,6 +166,10 @@ class ChallengesController < ApplicationController @shixun_modify = (@challenges.select{|c| c.status.present? }.size == @challenges.size) + logger.info("########shixun_modify:#{@shixun_modify}") + logger.info("########challenges.size:#{@challenges.size}") + logger.info("########challenge_inspect:#{@challenges.inspect}") + #@challenges = @shixun.challenges.fields_for_list @editable = @shixun.status == 0 # before_action:有判断权限,如果没发布,则肯定是管理人员 @user = current_user