Add missing system specs for poll question answer videos

Minor change for replace @video.answer_id to @video.answer.
This commit is contained in:
taitus
2022-09-09 12:54:03 +02:00
parent 3d1a9501aa
commit 1ec793863b
3 changed files with 39 additions and 13 deletions

View File

@@ -25,8 +25,7 @@ class Admin::Poll::Questions::Answers::VideosController < Admin::Poll::BaseContr
def update
if @video.update(video_params)
redirect_to admin_answer_videos_path(@video.answer_id),
notice: t("flash.actions.save_changes.notice")
redirect_to admin_answer_videos_path(@video.answer), notice: t("flash.actions.save_changes.notice")
else
render :edit
end