mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-12 02:14:22 +01:00
Try fixing a few test deprecations
This commit is contained in:
parent
399e2c0b76
commit
a0768636c3
13 changed files with 43 additions and 49 deletions
|
|
@ -9,8 +9,8 @@ class PreferencesController < ApplicationController
|
|||
def update
|
||||
@prefs = current_user.prefs
|
||||
@user = current_user
|
||||
user_updated = current_user.update_attributes(user_params)
|
||||
prefs_updated = current_user.preference.update_attributes(prefs_params)
|
||||
user_updated = current_user.update(user_params)
|
||||
prefs_updated = current_user.preference.update(prefs_params)
|
||||
if (user_updated && prefs_updated)
|
||||
if params['user']['password'].present? # password updated?
|
||||
logout_user t('preferences.password_changed')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue