Articles by Vipul A M

Running a Rails Consultancy- experiments on profit sharing

We announced our first yearly profit share this year for our Rails Consultancy. Here are some highlights from the process

Running a Rails Consultancy- a year in

Highlights from running our small Rails Consultancy for the first year

How to start with Software Consulting or Freelancing

How to get started with Software Consulting or Software Freelancing. First steps, ongoing work and more.

Ruby 2.7 adds Enumerable#filter_map

Ruby 2.7 has added Enumerable#filter_map as a shorthand for filter + map in a single call

Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#excluding

Rails 6 adds Array#including, Array#excluding, Enumerable#including, Enumerable#excluding

Rails 6 adds Relation#reselect

Rails 6 add a reselect method to Relation. This is a short-hand for "unscope(:select).select(fields)".

Ruby 2.7 adds Enumerable#tally

Ruby 2.7 has added Enumerable#tally. It helps to tally occurrences of elements in an Enumerable.

Rails 6 adds support for timezones to Active Job

Rails 6 now supports preserving timezones to Active Job. It record what was the current timezone in effect when the job was enqueued and then restore when the job is executed in same way that the current locale is recorded and restored.

Ruby 2.7 adds shorthand operator for Object#method

Ruby 2.7 adds experimental shorthand operator for Object#method. Allows method object access using :, example File.:basename

Rails 6 adds negative scopes for all enum values

Rails 6 adds negative scopes for all enum values

Rails 6 adds Enumerable#index_with

Rails 6 adds Enumerable#index_with to allows creating a hash from an enumerable with the value from a passed block or a default argument.

Rails 6 adds String#truncate_bytes

Rails 6 adds String#truncate_bytes to limit to N characters without breaking multibytes chars

Rails 6 adds Relation#create_or_find_by

Rails 6 adds Relation#create_or_find_by to avoid race conditions of Relation#find_or_create_by

Using Rails config_for as a replacement for secrets alongside credentials

Rails secrets is deprecated in Rails 6, config_for is a replacement of using ENV specific configuration along with credentials.