Ruby on Rails 8.0.2 Module ActiveRecord::AttributeMethods::BeforeTypeCast activerecord/lib/active_record/attribute_methods/before_type_cast.rb Active Record Attribute Methods Before Type Cast ActiveRecord::AttributeMethods::BeforeTypeCast provides a way to read the value of the attributes before typecasting and deserialization. class Task < ActiveRecord::Base end task = Task.new(id: '1', completed