Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2022-09-09 22:36:39 +01:00
parent f7e168b8e1
commit 9cd96bd452
7 changed files with 9 additions and 9 deletions

View file

@ -36,7 +36,7 @@ class ProfilesController < ApplicationController
flash[:notice] = t ".success"
redirect_to user_path(current_user)
else
flash[:error] = t ".failure"
flash.now[:error] = t ".failure"
render :edit
end
end