Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/diaspora/diaspora.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/users/_edit.haml')
-rw-r--r--app/views/users/_edit.haml2
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"