Friday, June 11, 2021

Active Storage audio improvements and more

Posted by morgoth85

Hi, Wojtek here with the summary of changes from the last week.

Add audio analyzer to Active Storage

It extracts duration and bit rate of audio files and stores it in the record metadata column.

Recognize audio presence in the video blobs

The metadata attribute of video blobs has a new boolean key named audio that is set to true if the file has an audio channel and false if it doesn’t.

Add attributes_for_database to Active Record

Returns attributes with values for assignment to the database. It works both for Active Record and Active Model objects.

Get rid of cattr_accessor in ActiveRecord::Base

More work on improving performance by eliminating class variables. This is a followup to previous change where detailed benchmark can be found.

23 people contributed to Rails since last time. All the changes can be checked here. Until next week!