Fix bug.
This commit is contained in:
parent
88be2136aa
commit
7178192060
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue