Rails

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.

Rails 7.1 secret_key_base in Credentials

Rails 7.1 stores secret_key_base in credentials instead of secrets, following the deprecation of the secrets API for enhanced security

Integrate Replicate in Rails Application

Integrate Replicate in Rails application and effortlessly run various machine learning models in the cloud using Replicate

Sort Rails Models By Association Order

Sort your Rails models by the order of their belongs_to associations using ActiveRecord::Reflection.