diff options
author | Dimitar Dimitrov <wireman@gmail.com> | 2012-02-22 22:25:44 +0200 |
---|---|---|
committer | Dimitar Dimitrov <wireman@gmail.com> | 2012-02-22 22:25:44 +0200 |
commit | 7ee7f14e11ad83d7c0800478ee451aabb45b914a (patch) | |
tree | 9ca2c3a4de0d43ef6193b447fd58f5740089f9ab /activerecord/lib/active_record | |
parent | 91148936f770dc8bbbb33d46a09528f1a32d8a71 (diff) | |
download | rails-7ee7f14e11ad83d7c0800478ee451aabb45b914a.tar.gz rails-7ee7f14e11ad83d7c0800478ee451aabb45b914a.tar.bz2 rails-7ee7f14e11ad83d7c0800478ee451aabb45b914a.zip |
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.
Diffstat (limited to 'activerecord/lib/active_record')
-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" # |