Articles by Narendra Rajput

Rails 6.1 adds rescue_from to ActionCable::Connection::Base

The `rescue_from` on ActionCable::Connection::Base allows us to intercept unhandled exceptions

Rails 6.1 adds ActionCable::Channel#stream_or_reject_for

Rails 6.1 adds `ActionCable::Channel#stream_or_reject_for` to stream or reject connection based on presence of record

Ruby 2.7 - Setting $ special variables to non-nil value is now warned

In Ruby 2.7, setting special variable $, $; $/ $\ to non-nil values will now show a deprecated warning

Rails has added a benchmark generator

Rails has added a benchmark generator for scripts to benchmark Rails application.

Rails adds ActiveRecord::Relation#annotate for adding SQL comments to ActiveRecord::Relation queries

Rails adds ActiveRecord::Relation#annotate for adding SQL comments to ActiveRecord::Relation queries

Ruby 2.7 fixed the parsing for multiple assignment with `rescue` modifier

Ruby 2.7 fixed how the `rescue` modifier was parsed in multiple assignment statement.

Ruby 2.7 adds Symbol#start_with? and Symbol#end_with? methods

Ruby 2.7 adds Symbol#start_with? and Symbol#end_with? methods.

Ruby 2.7 improves Method#inspect by also displaying method's arguments

Ruby 2.7 improves Method#inspect by also displaying method's arguments

Ruby 2.7 adds shorthand syntax for arguments forwarding

Ruby 2.7 has added new syntax `...` for method arguments forwarding.

Rails 6 adds each_value method to ActionController::Parameters

Rails 6 adds each_value method to ActionController::Parameters

Rails 6 adds tools for Action Cable testing.

Rails 6 adds tools for Action Cable testing.

Ruby 2.7 adds Enumerator::Lazy#eager

Ruby 2.7 added `eager` method to the Enumerator::Lazy class

Rails 6 adds Hash#deep_transform_values and Hash#deep_transform_values!

Rails 6 has added Hash#deep_transform_values and Hash#deep_transform_values! to allow performing deep value transformations on a nested hash

Find timezone from latitude & longitude in ruby using timezone gem

Find timezone from latitude & longitude in ruby using timezone gem

Running scheduled jobs in multiple timezones using clockwork

Scheduling background jobs in multiple timezones with clockwork