mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-22 09:07:47 +01:00
Fix hound nits
This commit is contained in:
parent
555636577e
commit
61edaa5bcd
1 changed files with 2 additions and 2 deletions
|
@ -158,12 +158,12 @@ class UserController < ApplicationController
|
||||||
if current_user.theme.save
|
if current_user.theme.save
|
||||||
flash[:success] = t(".success")
|
flash[:success] = t(".success")
|
||||||
else
|
else
|
||||||
flash[:error] = t(".error", errors: current_user.theme.errors.messages.flatten.join(' '))
|
flash[:error] = t(".error", errors: current_user.theme.errors.messages.flatten.join(" "))
|
||||||
end
|
end
|
||||||
elsif current_user.theme.update(update_attributes)
|
elsif current_user.theme.update(update_attributes)
|
||||||
flash[:success] = t(".success")
|
flash[:success] = t(".success")
|
||||||
else
|
else
|
||||||
flash[:error] = t(".error", errors: current_user.theme.errors.messages.flatten.join(' '))
|
flash[:error] = t(".error", errors: current_user.theme.errors.messages.flatten.join(" "))
|
||||||
end
|
end
|
||||||
redirect_to edit_user_theme_path
|
redirect_to edit_user_theme_path
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue