Commit 5ab1856291d845b27f68c41f23ca76c78afcbce1
1 parent
4426bc18
Exists in
master
and in
4 other branches
Fixing requests tests.
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/user.rb
... | ... | @@ -59,7 +59,7 @@ class User < ActiveRecord::Base |
59 | 59 | before_validation :generate_password, :on => :create |
60 | 60 | |
61 | 61 | def generate_password |
62 | - if self.force_random_password == true | |
62 | + if self.force_random_password | |
63 | 63 | self.password = self.password_confirmation = Devise.friendly_token.first(8) |
64 | 64 | end |
65 | 65 | end | ... | ... |
app/views/admin/users/_form.html.haml