Module: ActiveFedora::AutosaveAssociation::AssociationBuilderExtension

Included in:
ActiveFedora::Associations::Builder::Orders
Defined in:
lib/active_fedora/autosave_association.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.build(model, reflection) ⇒ Object



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

def self.build(model, reflection)
  model.send(:define_autosave_association_callbacks, reflection) if ASSOCIATION_TYPES.include? reflection.macro
end

.valid_optionsObject



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

def self.valid_options
  [:autosave]
end