Method: ActiveFedora::Reflection::AbstractReflection#build_association
- Defined in:
- lib/active_fedora/reflection.rb
#build_association(attributes, &block) ⇒ Object
Returns a new, unsaved instance of the associated class. attributes will be passed to the class’s constructor.
163 164 165 |
# File 'lib/active_fedora/reflection.rb', line 163 def build_association(attributes, &block) klass.new(attributes, &block) end |