Simplify render in controllers (#2144)
This commit is contained in:
parent
bfbc2ca0d8
commit
a8e1afc30a
9 changed files with 27 additions and 27 deletions
|
@ -29,7 +29,7 @@ class Settings::PreferencesController < ApplicationController
|
|||
if current_user.update(user_params.except(:notification_emails, :interactions, :setting_default_privacy, :setting_boost_modal, :setting_auto_play_gif))
|
||||
redirect_to settings_preferences_path, notice: I18n.t('generic.changes_saved_msg')
|
||||
else
|
||||
render action: :show
|
||||
render :show
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue