Rails

Rails 7.1 MessagePack Serializer Support

Rails 7.1 adds native MessagePack support for MessageEncryptor and MessageVerifier, enabling smaller payloads and faster serialization.

Rails 7.1 generates_token_for Method

Generate tokens for specific purposes and verify their authenticity.

Rails 7.1 ActiveRecord Normalization

Rails 7.1 lets you define custom normalization rules for model attributes with the normalizes method.

Limiting Maximum Index Name Length in Ruby

Rails 7.1 defined maximum limit of 62 bytes for auto-generated index names.

Rails 7.1 Autoload Lib with Ignore Option

Autoloading lib directory isn't always straightforward. In this blog post, we'll delve into the autoloading of the lib directory using config.

Rails 7.1 SSL Enforcement by Default

Rails 7.1 enables force_ssl=true in production by default.

Rails 7.1 ErrorReporter Handles Many Errors

Rails introduces handle method for ErrorReporter API

Rails Object#with for Attribute Management

We can use Object#with method as shorthand for the common begin/ensure pattern to save the value of an attribute, setting a new value, and then restoring

Rails Object#in? Now Supports Open Ranges

We can use Object#in? method to check open date ranges i.e. beginless and endless ranges.

Introducing Line Range Filtering in Rails

Rails 7.1 introduces line range filtering for running specific tests within a test file based on line numbers.