diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 7cd6c7506b..eac70cc622 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -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. diff --git a/railties/CHANGELOG.md b/railties/CHANGELOG.md index b42a2f4806..199060e7f4 100644 --- a/railties/CHANGELOG.md +++ b/railties/CHANGELOG.md @@ -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.