Narendra Rajput

Narendra Rajput

Narendra is a Ruby on Rails Developer.
authorImg 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
authorImg Narendra Rajput

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
authorImg Narendra Rajput

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
authorImg Narendra Rajput

Rails has added a benchmark generator

Rails has added a benchmark generator for scripts to benchmark Rails application.
authorImg Narendra Rajput

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
authorImg Narendra Rajput

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.
authorImg Narendra Rajput

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

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

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

Ruby 2.7 adds Symbol#start_with? and Symbol#end_with? methods.
authorImg Narendra Rajput

Ruby 2.7 adds shorthand syntax for arguments forwarding

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

Rails 6 adds each_value method to ActionController::Parameters

Rails 6 adds each_value method to ActionController::Parameters
authorImg Narendra Rajput

Rails 6 adds tools for Action Cable testing.

Rails 6 adds tools for Action Cable testing.
authorImg Narendra Rajput

Ruby 2.7 adds Enumerator::Lazy#eager

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

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
authorImg Narendra Rajput

Find timezone from latitude & longitude in ruby using timezone gem

Find timezone from latitude & longitude in ruby using timezone gem
authorImg Narendra Rajput

Running scheduled jobs in multiple timezones using clockwork

Scheduling background jobs in multiple timezones with clockwork