Module: ActiveRecord::AutosaveAssociation::AssociationBuilderExtension

Defined in:
lib/active_record/autosave_association.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.build(model, reflection) ⇒ Object



132
133
134
# File 'lib/active_record/autosave_association.rb', line 132

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

.valid_optionsObject



136
137
138
# File 'lib/active_record/autosave_association.rb', line 136

def self.valid_options
  [ :autosave ]
end