mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-15 16:56:32 +01:00
Refactor negative blank? into present?
This commit is contained in:
parent
4ca6114b76
commit
a97848f0ba
6 changed files with 12 additions and 12 deletions
|
|
@ -12,7 +12,7 @@ class PreferencesController < ApplicationController
|
|||
user_updated = current_user.update_attributes(user_params)
|
||||
prefs_updated = current_user.preference.update_attributes(prefs_params)
|
||||
if (user_updated && prefs_updated)
|
||||
if !params['user']['password'].blank? # password updated?
|
||||
if params['user']['password'].present? # password updated?
|
||||
logout_user t('preferences.password_changed')
|
||||
else
|
||||
preference_updated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue