Prasad Walvekar

Prasad Walvekar

Prasad is a Ruby on Rails Developer.
authorImg Prasad Walvekar

Two new properties in CSS - overflow:clip and overflow-clip-margin

overflow: clip and overflow: hidden both do the same job of hiding content that overflows. However, overflow: clip also disables programmatic scrolling. Another property overflow-clip-margin controls how far from the element's edge the clipping begins.
authorImg Prasad Walvekar

Rails 7 adds `audio` in the metadata for video files

With the addition of `audio` metadata to video blobs, it will now be possible to check the presence of an audio channel in a video file.
authorImg Prasad Walvekar

React 17 introduces new JSX transform

React 17 introduces jsx-runtime and jsx-dev-runtime that enables the user to write JSX without importing React.
authorImg Prasad Walvekar

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.
authorImg Prasad Walvekar

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.
authorImg Prasad Walvekar

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.