Commit 56dbfd2af3174a94d0c5ed93a14dd3244370d2f0
1 parent
9132d309
Exists in
master
and in
4 other branches
Implementing automatic password generation.
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/user.rb
... | ... | @@ -53,7 +53,7 @@ class User < ActiveRecord::Base |
53 | 53 | scope :blocked, where(:blocked => true) |
54 | 54 | scope :active, where(:blocked => false) |
55 | 55 | |
56 | - before_validation :generate_password, :on1 => :create | |
56 | + before_validation :generate_password, :on => :create | |
57 | 57 | |
58 | 58 | def generate_password |
59 | 59 | if self.password.blank? && self.password_confirmation.blank? | ... | ... |