Articles by Aditya Narsapurkar

Rails ActionController::Parameters each_pair and each_value returns an enumerator.

Rails ActionController::Parameters each_pair and each_value now returns an enumerator when provided without a block.

Rails ActiveRecord::Relation#pick now uses already loaded results

Rails ActiveRecord::Relation#pick now uses already loaded results instead of making a new query everytime.

Rails adds jitter to ActiveJob::Exceptions.retry_on

Rails adds jitter to ActiveJob::Exceptions.retry_on to cater to thundering herd effect

Ruby 2.7 allows placing of comment lines between fluent dots

Ruby 2.7 allows placing of comment lines between chained methods. It facilitates easier debugging and also allows adding a separate comment for one or more chained methods.

Webpacker is the new default in Rails 6

Webpacker is the new default JavaScript compiler instead of Sprockets in Rails 6

Rails 6 adds guard against DNS rebinding attacks

Rails 6 adds guard against DNS rebinding attacks by allowing whitelisting of hosts in config

Ruby adds Array#intersection method

Ruby adds Array#intersection as a more readable alias for Array#&

Rails 6 upgrades to rails notes command and introduction of Rails::Command::NotesCommand

Rails 6 introduces several upgrades to rails notes command and adds Rails::Command::NotesCommand to be used by rake notes under the hood.