instance method
autosave=
Ruby on Rails 8.0.4
Since v4.1.16Signature
autosave=(autosave)
No documentation comment.
Parameters
-
autosavereq
Source
# File activerecord/lib/active_record/reflection.rb, line 399
def autosave=(autosave)
@options[:autosave] = autosave
parent_reflection = self.parent_reflection
if parent_reflection
parent_reflection.autosave = autosave
end
end
Defined in activerecord/lib/active_record/reflection.rb line 399
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Reflection::MacroReflection