mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-21 16:36:08 +01:00
Merge pull request #2453 from TracksApp/dependabot/bundler/aasm-5.1.1
Bump aasm from 4.12.3 to 5.1.1
This commit is contained in:
commit
0e5da18b71
17 changed files with 51 additions and 57 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