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