Module: ActiveFedora::AutosaveAssociation::AssociationBuilderExtension

Defined in:
lib/active_fedora/autosave_association.rb

Overview

:nodoc:

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object


81
82
83
# File 'lib/active_fedora/autosave_association.rb', line 81

def self.included(base)
  base.valid_options << :autosave
end

Instance Method Details

#buildObject


85
86
87
88
89
# File 'lib/active_fedora/autosave_association.rb', line 85

def build
  reflection = super
  model.send(:add_autosave_association_callbacks, reflection)
  reflection
end