Permalink
Browse files

Revert "Remove meaningless code from the examples" of AutosaveAssocia…

…tion


Reverts a part of 9114893. Should probably be squashed with it when merging back in rails/rails.
  • Loading branch information...
1 parent 9114893 commit 7ee7f14e11ad83d7c0800478ee451aabb45b914a @mitio mitio committed Feb 22, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 activerecord/lib/active_record/autosave_association.rb
View
3 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"
#

0 comments on commit 7ee7f14

Please sign in to comment.