ActiveRecord::Base#becomes with initialize value

I propose that initialize values in becomes method

for example,

class Book < ApplicationRecord end

class PaperBook < Book after_initialize do |boo| material ||= “paper” end end

book = Book.new book.material

=> nil

book.becomes!(PaperBook).materal

=> “paper”

``

Shoul I implement the feature?

Does it make sense?

If the callback belonged to Book, would you re-run it with becomes? Sounds confusing.

Nope, If attribute has value, it is not initialized.