instance method
autosave=
Ruby on Rails 7.1.6
Since v4.1.16Signature
autosave=(autosave)
No documentation comment.
Parameters
-
autosavereq
Source
# File activerecord/lib/active_record/reflection.rb, line 388
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 388
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::Reflection::MacroReflection