Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 7ee7f14e11ad83d7c0800478ee451aabb45b914a 1 parent 9114893
Dimitar Dimitrov mitio authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  activerecord/lib/active_record/autosave_association.rb
3  activerecord/lib/active_record/autosave_association.rb
View
@@ -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"
#
Please sign in to comment.
Something went wrong with that request. Please try again.