rails icon indicating copy to clipboard operation
rails copied to clipboard

Add a build persistence method

Open seand7565 opened this issue 1 year ago • 0 comments

Summary

Provides a wrapper for new, to provide feature parity with creates ability to create multiple records from an array of hashes, using the same notation as the build method on associations.

  • Associations can create multiple objects from an array of hashes
  • Associations can build multiple objects from an array of hashes
  • Classes can create multiple objects from an array of hashes
  • Classes can build multiple objects from an array of hashes (<- You are here)

As discussed here: https://discuss.rubyonrails.org/t/allow-activerecord-inheritance-new-to-accept-an-array/80889

seand7565 avatar Jul 29 '22 14:07 seand7565