Aditya Narsapurkar

Aditya Narsapurkar

Aditya is a Ruby on Rails and ReactJS Developer.
authorImg Aditya Narsapurkar

Rails 7 ActiveJob adds the ability to communicate enqueue failures to callers

ActiveJob's `perform_later` method provides a clean way of communicating enqueued job failures to the caller method, allowing developers to handle errors more efficiently.
authorImg 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.
authorImg Aditya Narsapurkar

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.
authorImg Aditya Narsapurkar

Rails adds jitter to ActiveJob::Exceptions.retry_on

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

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.
authorImg Aditya Narsapurkar

Webpacker is the new default in Rails 6

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

Rails 6 adds guard against DNS rebinding attacks

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

Ruby adds Array#intersection method

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

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.