✂️ trailing spaces [ci skip]

This commit is contained in:
Ryuta Kamizono 2020-05-18 07:12:11 +09:00
parent a061d9012f
commit a2a861d357
2 changed files with 11 additions and 9 deletions

View File

@ -1,22 +1,22 @@
* Add support for finding records based on signed ids, which are tamper-proof, verified ids that can be
set to expire and scoped with a purpose. This is particularly useful for things like password reset
or email verification, where you want the bearer of the signed id to be able to interact with the
set to expire and scoped with a purpose. This is particularly useful for things like password reset
or email verification, where you want the bearer of the signed id to be able to interact with the
underlying record, but usually only within a certain time period.
```ruby
signed_id = User.first.signed_id expires_in: 15.minutes, purpose: :password_reset
User.find_signed signed_id # => nil, since the purpose does not match
travel 16.minutes
User.find_signed signed_id, purpose: :password_reset # => nil, since the signed id has expired
travel_back
User.find_signed signed_id, purpose: :password_reset # => User.first
User.find_signed! "bad data" # => ActiveSupport::MessageVerifier::InvalidSignature
```
*DHH*
* Support `ALGORITHM = INSTANT` DDL option for index operations on MySQL.

View File

@ -1,8 +1,10 @@
* Add default ENV variable option with BACKTRACE to turn off backtrace cleaning when debugging framework code in the
* Add default ENV variable option with BACKTRACE to turn off backtrace cleaning when debugging framework code in the
generated config/initializers/backtrace_silencers.rb.
`BACKTRACE=1 ./bin/rails runner "MyClass.perform"`
*DHH*
* The autoloading guide for Zeitwerk mode documents how to autoload classes
during application boot in a safe way.