aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/CHANGELOG
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r--activerecord/CHANGELOG10
1 files changed, 5 insertions, 5 deletions
diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG
index 9d22842cb3..fd571c4ca4 100644
--- a/activerecord/CHANGELOG
+++ b/activerecord/CHANGELOG
@@ -6,12 +6,12 @@
class User < ActiveRecord::Base
has_secure_password
end
-
- user = User.new(:name => "david", :password => "secret", :password_confirmation => "nomatch")
- user.save # => false, password not long enough
- user.password = "mUc3m00RsqyRe"
+
+ user = User.new(:name => "david", :password => "", :password_confirmation => "nomatch")
+ user.save # => false, password required
+ user.password = "mUc3m00RsqyRe"
user.save # => false, confirmation doesn't match
- user.password_confirmation = "mUc3m00RsqyRe"
+ user.password_confirmation = "mUc3m00RsqyRe"
user.save # => true
user.authenticate("notright") # => false
user.authenticate("mUc3m00RsqyRe") # => user