Rails 7 adds accepts_nested_attributes_for support for delegated_type Open options Share https://blog.saeloun.com/2022/02/02/rails-7-adds-nested-attributes-for-delegated-type/