Vamsi Pavan Mahesh

Vamsi Pavan Mahesh

Vamsi is a Senior Software Developer dedicated to creating seamless user experiences. With deep expertise in both Ruby on Rails and ReactJS
authorImg Vamsi Pavan Mahesh

Rails Deprecates db:structure Tasks

Rails deprecates db:structure:load and db:structure:dump tasks in favor of db:schema tasks with schema_format config.
authorImg Vamsi Pavan Mahesh

Ruby 3.0 adds `Hash#except` and `ENV.except`

Ruby 3.0 adds `Hash#except` to return a new hash that includes everything from the original hash except the given keys. `ENV` also gets support for `except`.
authorImg Vamsi Pavan Mahesh

Rails Allows Prepending Concerns

This blog post discusses the concept of prepending in Ruby and prepending concerns with the help of Active Support in Rails.
authorImg Vamsi Pavan Mahesh

Rails Adds Default Value to Rich Text Area

Rails has added support for adding a default value to the form field of type rich text area.
authorImg Vamsi Pavan Mahesh

Ruby Adds Leading Arguments with Forwarding

... operator was limited to forwarding arguments. With Ruby 3.0, it can forward the arguments along with the leading arguments.
authorImg Vamsi Pavan Mahesh

Rails db:migrate:name Behavior Changes

Rails now dumps schema and resets ActiveRecord::Base connection when running db:migrate:name.
authorImg Vamsi Pavan Mahesh

Ruby 3.0 Adds Symbol#name Method

Ruby has added `Symbol#name`, which returns the name of the symbol if it is named. The returned string can not be modified.
authorImg Vamsi Pavan Mahesh

Rails Adds --minimal Flag for New Apps

Rails introduces --minimal flag to generate a barebones application without extra frameworks.
authorImg Vamsi Pavan Mahesh

Ruby Adds Rightward Assignment Support

Previously ruby used to support only Rvalue to be assigned to Lvalue. Now, it adds support for Rightward assignment
authorImg Vamsi Pavan Mahesh

Ruby Adds Find Pattern in Pattern Matching

Find pattern is introduced in pattern matching, which is useful in matching arrays.
authorImg Vamsi Pavan Mahesh

Rails 6.1 Allows SQL Comments in OR Queries

ArgumentError used to be thrown when relations with SQL comments and Optimizer hints were combined using or. Rails edge(6.1.0.alpha) fixes that issue.
authorImg Vamsi Pavan Mahesh

Ruby 3.0 Changes Proc Autosplatting Behavior

Ruby 3.0 changed the inconsistent behavior for autosplatting, when rest argument and keyword arguments are present for a Proc