Method: ActiveRecord::Reflection::MacroReflection#autosave=

Defined in:
lib/active_record/reflection.rb

#autosave=(autosave) ⇒ Object



154
155
156
157
158
159
160
161
# File 'lib/active_record/reflection.rb', line 154

def autosave=(autosave)
  @automatic_inverse_of = false
  @options[:autosave] = autosave
  _, parent_reflection = self.parent_reflection
  if parent_reflection
    parent_reflection.autosave = autosave
  end
end