---
title: "Blogs by Sushant Mittal"
description: "Read BigBinary blog posts by Sushant Mittal."
canonical_url: "https://www.bigbinary.com/blog/authors/sushantmittal"
markdown_url: "https://www.bigbinary.com/blog/authors/sushantmittal.md"
---

# Blogs by Sushant Mittal

Read BigBinary blog posts by Sushant Mittal.

## Posts

### Rails 5.2 DSL for configuring Content Security Policy

[Rails 5.2 DSL for configuring Content Security Policy](https://www.bigbinary.com/blog/rails-5-2-adds-dsl-for-configuring-content-security-policy-header)

- Author: Sushant Mittal
- Published: October 23, 2018
- Categories: Rails 5.2, Rails

Rails 5.2 adds DSL for configuring Content Security Policy header

### Rails 5.2 uses AES-256-GCM authenticated encryption

[Rails 5.2 uses AES-256-GCM authenticated encryption](https://www.bigbinary.com/blog/rails-5-2-uses-aes-256-gcm-authenticated-encryption-as-default-cipher-for-encrypting-messages)

- Author: Sushant Mittal
- Published: June 26, 2018
- Categories: Rails 5.2, Rails

Rails 5.2 uses AES-256-GCM authenticated encryption as default cipher for
encrypting messages

### Rails 5.2 fixes query caching in MySQL & PostgreSQL adapters

[Rails 5.2 fixes query caching in MySQL & PostgreSQL adapters](https://www.bigbinary.com/blog/rails-5-2-fixes-query-caching-in-mysql-and-postgresql-adapters)

- Author: Sushant Mittal
- Published: May 16, 2018
- Categories: Rails 5.2, Rails

Rails 5.2 fixes query caching in MySQL and PostgreSQL adapters

### Rails 5.2 Date#prev_occurring & Date#next_occurring

[Rails 5.2 Date#prev_occurring & Date#next_occurring](https://www.bigbinary.com/blog/rails-5-2-adds-date-methods-to-return-specified-next-or-previous-occurring-day-of-week)

- Author: Sushant Mittal
- Published: April 17, 2018
- Categories: Rails 5.2, Rails

Rails 5.2 added Date#prev_occurring and Date#next_occurring to return specified
next/previous occurring day of week.

### Gpg decryption without pin entry pop up using GPGME

[Gpg decryption without pin entry pop up using GPGME](https://www.bigbinary.com/blog/gpg-decryption-without-pin-entry-pop-up-using-gpgme)

- Author: Sushant Mittal
- Published: March 27, 2018
- Categories: Rails

Gpg decryption without pin entry pop up using GPGME

### Rails adds accurate numerical validation

[Rails adds accurate numerical validation](https://www.bigbinary.com/blog/rails-now-avoids-converting-integer-as-a-string-into-float-when-validating-numericality)

- Author: Sushant Mittal
- Published: October 23, 2017
- Categories: Rails

Rails now avoids converting integer as a string into float when validating
numericality

### CSV::Row#each etc. return enumerator when no block given

[CSV::Row#each etc. return enumerator when no block given](https://www.bigbinary.com/blog/csv-row-each-and-delete-if-return-enumerator-when-no-block-given)

- Author: Sushant Mittal
- Published: September 25, 2017
- Categories: Ruby 2.4, Ruby

CSV::Row#each, CSV::Row#delete_if, CSV::Table#each and CSV::Table#delete_if
return enumerator when no block given

### Ruby 2.4 DateTime#to_time & Time#to_time keeps info

[Ruby 2.4 DateTime#to_time & Time#to_time keeps info](https://www.bigbinary.com/blog/to-time-preserves-time-zone-info-in-ruby-2-4)

- Author: Sushant Mittal
- Published: September 19, 2017
- Categories: Ruby 2.4, Ruby

DateTime#to_time and Time#to_time preserves receiver's timezone offset info in
Ruby 2.4

### Ruby 2.4 no exception for objects converted to IPAddr

[Ruby 2.4 no exception for objects converted to IPAddr](https://www.bigbinary.com/blog/ruby-2-4-ip-addr-methods-do-not-throw-exception-for-objects-that-cant-be-converted-to-ipaddr)

- Author: Sushant Mittal
- Published: June 21, 2017
- Categories: Ruby 2.4, Ruby

IPAddr#== and IPAddr# do not throw exception for objects that can't be converted
to IPAddr anymore in Ruby 2.4

### Ruby 2.4 allows custom suffix of rotated log files

[Ruby 2.4 allows custom suffix of rotated log files](https://www.bigbinary.com/blog/ruby-2-4-allows-to-customize-suffix-of-the-rotated-log-files)

- Author: Sushant Mittal
- Published: June 15, 2017
- Categories: Ruby 2.4, Ruby

Ruby 2.4 has added ability to pass custom date format for the suffix of log
files rotated daily, weekly or monthly

### Ruby 2.4 Hash#transform_values & destructive version

[Ruby 2.4 Hash#transform_values & destructive version](https://www.bigbinary.com/blog/ruby-2-4-added-hash-transform-values-and-its-destructive-version-from-active-support)

- Author: Sushant Mittal
- Published: June 14, 2017
- Categories: Ruby 2.4, Ruby

In Ruby 2.4, Hash#transform_values and Hash#transform_values! can be used to
transform the values after executing passed block for each value

## Links

- [Human page](https://www.bigbinary.com/blog/authors/sushantmittal)
