From 7ee7f14e11ad83d7c0800478ee451aabb45b914a Mon Sep 17 00:00:00 2001 From: Dimitar Dimitrov Date: Wed, 22 Feb 2012 22:25:44 +0200 Subject: [PATCH] Revert "Remove meaningless code from the examples" of AutosaveAssociation Reverts a part of 91148936f770dc8bbbb33d46a09528f1a32d8a71. Should probably be squashed with it when merging back in rails/rails. --- activerecord/lib/active_record/autosave_association.rb | 3 +++ 1 file changed, 3 insertions(+) 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" # -- GitLab