Commit 948f122f authored by Michael Rose's avatar Michael Rose

announcements: use new Rails 5 redirect_back to avoid errors

parent 28ceb3b4
......@@ -3,7 +3,7 @@ class AnnouncementsController < ApplicationController
ids = [params[:id], *cookies.signed[:hidden_announcement_ids]]
cookies.permanent.signed[:hidden_announcement_ids] = ids
respond_to do |format|
format.html { redirect_to :back }
format.html { redirect_back(fallback_location: root_path) }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment