mirror of
https://github.com/System-End/hackatime.git
synced 2026-04-20 00:35:22 +00:00
Fix old usage of viewing_own_settings
This commit is contained in:
parent
f68552329e
commit
6ce1e317e9
1 changed files with 1 additions and 1 deletions
|
|
@ -9,7 +9,7 @@ class UsersController < ApplicationController
|
|||
|
||||
def update
|
||||
if @user.update(user_params)
|
||||
redirect_to viewing_own_settings? ? my_settings_path : user_settings_path(@user),
|
||||
redirect_to is_own_settings? ? my_settings_path : user_settings_path(@user),
|
||||
notice: "Settings updated successfully"
|
||||
else
|
||||
render :settings, status: :unprocessable_entity
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue