Apply Rails/RequestReferer rubocop rule

This commit is contained in:
Javi Martín
2019-06-22 22:35:58 +02:00
parent a5ba13b599
commit daa86ca3fc
5 changed files with 6 additions and 6 deletions

View File

@@ -38,7 +38,7 @@ class Admin::Poll::Questions::Answers::VideosController < Admin::Poll::BaseContr
else
t("flash.actions.destroy.error")
end
redirect_back(fallback_location: (request.referrer || root_path), notice: notice)
redirect_back(fallback_location: (request.referer || root_path), notice: notice)
end
private