Skip to content

Commit e1cfcb1

Browse files
committed
Fix indentation in 7.1 release notes
1 parent f9e4fb9 commit e1cfcb1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

guides/source/7_1_release_notes.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ Here's an example of how this feature can be used:
101101

102102
```ruby
103103
class User < ActiveRecord::Base
104-
has_secure_password
105-
106-
generates_token_for :password_reset, expires_in: 15.minutes do
107-
# A password's BCrypt salt changes when the password is updated.
108-
# By embedding (part of) the salt in a token, the token will
109-
# expire when the password is updated.
110-
BCrypt::Password.new(password_digest).salt[-10..]
111-
end
104+
has_secure_password
105+
106+
generates_token_for :password_reset, expires_in: 15.minutes do
107+
# A password's BCrypt salt changes when the password is updated.
108+
# By embedding (part of) the salt in a token, the token will
109+
# expire when the password is updated.
110+
BCrypt::Password.new(password_digest).salt[-10..]
111+
end
112112
end
113113

114114
user = User.first

0 commit comments

Comments
 (0)