diff options
-rw-r--r-- | activerecord/lib/active_record/autosave_association.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/autosave_association.rb b/activerecord/lib/active_record/autosave_association.rb index ed13bdf68f..4bafadc666 100644 --- a/activerecord/lib/active_record/autosave_association.rb +++ b/activerecord/lib/active_record/autosave_association.rb @@ -44,6 +44,9 @@ module ActiveRecord # automatically _and_ atomically: # # post = Post.find(1) + # post.title # => "The current global position of migrating ducks" + # post.author.name # => "alloy" + # # post.title = "On the migration of ducks" # post.author.name = "Eloy Duran" # |