Articles by Prasad Walvekar
May 26, 2021
Rails 7 adds `Enumerable#sole` to return a sole item in the enumerable
Enumerable#sole returns the sole item in the enumerable and raises an exception if no items or more than one item is found.
Feb 5, 2021
Rails 6.1 adds support for validating numeric values fall in a range using `in:` option
The `numericality` validation helper now accepts `in:` as an option for which the value must be a range.
Nov 18, 2020
Rails 6.1 adds support for destroying dependent associations in the background
Destroying multiple layered hierarchy of associated objects can be time consuming and might result in a server timeout error. With Rails adding support for dependent associations to be deleted in the background, this issue is addressed.