Narendra Rajput

Narendra Rajput

Narendra is an Engineering Manager and a Ruby on Rails expert with over 11 years of experience. He’s a core engineer at Saeloun, known for his technical excellence and influence that extends beyond code.
authorImg Narendra Rajput

Rails 6.1 Adds rescue_from to ActionCable

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

Rails 6.1 Adds 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 Warns Setting $ Special Variables

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 Relation#annotate for SQL Comments

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

Ruby 2.7 Multiple Assignment with rescue

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

Ruby 2.7 Method#inspect Shows Arguments

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

Ruby 2.7 Adds Symbol#start_with? and

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

Ruby 2.7 Adds Shorthand for Arguments

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

Rails 6 Adds each_value to Parameters

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

Rails 6 adds tools for Action Cable testing.

Rails 6 adds comprehensive tools for Action Cable testing, enabling developers to test WebSocket connections and channel subscriptions.
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

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 Coordinates Using Ruby

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

Scheduled Jobs in Multiple Timezones

Scheduling background jobs in multiple timezones with clockwork