diff options
Diffstat (limited to 'app/views/users/_edit.haml')
-rw-r--r-- | app/views/users/_edit.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/users/_edit.haml b/app/views/users/_edit.haml index adeb9bddf..e20bcff44 100644 --- a/app/views/users/_edit.haml +++ b/app/views/users/_edit.haml @@ -34,7 +34,7 @@ .col-md-12 %h3= t(".change_password") = form_for @user, url: edit_user_path, html: {method: :put, class: "form-horizontal"} do |f| - - if (@user.errors.keys & %i(password password_confirmation current_password)).present? + - if (@user.errors.attribute_names & %i[password password_confirmation current_password]).present? = f.error_messages .form-group = f.label :current_password, t(".current_password"), class: "col-sm-6 control-label" |