We had 36 people who helped make Rails better this week. Six of them contributed for the first time ever! If you would like to help out, check the issues list.
If you've used current_user from Devise, you've already come across what CurrentAttributes partly provides, but wait there's more!
Using CurrentAttributes you can start using per request variables that are accessible across the whole system like Models, Controllers, Views, during a Rails request cycle.
For example you can start using attributes like current_user, account, etc, and much more that your system might need without passing them all around to different methods.
Encrypted cookies now useAES-GCM which couples authentication and encryption in one faster step and produces shorter ciphertexts.
Older cookies encrypted using AES in CBC HMAC mode will be seamlessly upgraded when this new mode is enabled via the action_dispatch.use_authenticated_cookie_encryption configuration value.
This change fixes a regression in Numericality validator where extra decimal places on a user input for a decimal column were ignored by numerically validations, for example when comparing 9.18 vs 9.179.