method
build_association
v7.1.3.4 -
Show latest stable
- Class:
ActiveRecord::Reflection::AbstractReflection
build_association(attributes, &block)public
Returns a new, unsaved instance of the associated class. attributes will be passed to the class’s constructor.