Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

without autosave option updated records not save

Emphasizing that without autosave option only new
records are saved and updated records are not saved
  • Loading branch information...
commit ee48cf69eeb04a21941922c7f840babe3b619c6e 1 parent bbcc212
@neerajdotname neerajdotname authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  activerecord/lib/active_record/autosave_association.rb
View
3  activerecord/lib/active_record/autosave_association.rb
@@ -17,7 +17,8 @@ module ActiveRecord
# be destroyed directly. They will however still be marked for destruction.
#
# Note that <tt>autosave: false</tt> is not same as not declaring <tt>:autosave</tt>.
- # When the <tt>:autosave</tt> option is not present new associations are saved.
+ # When the <tt>:autosave</tt> option is not present then new association records are
+ # saved but the updated association records are not saved.
#
# == Validation
#
Please sign in to comment.
Something went wrong with that request. Please try again.