From 717819206046eff695ec75213b25b8b7072eac34 Mon Sep 17 00:00:00 2001 From: Bohung Date: Sun, 12 Sep 2021 22:00:07 +0800 Subject: [PATCH] Fix bug. --- config/routes.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/routes.rb b/config/routes.rb index 63b29d6..3554da7 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -24,7 +24,7 @@ Rails.application.routes.draw do if answer_group.nil? answer_group = SurveyAnswerGroup.new(info) end - answer_group.last_modified = survey_answers.last.updated_at + answer_group.last_modified = survey_answers.last.created_at answer_group.survey_answer_ids = survey_answers.map{|a| a.id} answer_group.save end