diff options
author | Yves Senn <yves.senn@gmail.com> | 2014-04-11 07:53:39 +0200 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2014-04-11 07:53:39 +0200 |
commit | 856ffbe7058065a34a708fd5b398c0553f9f1f97 (patch) | |
tree | 3296bf7cb4fd45618ed273c5b98365c066953556 /activerecord/MIT-LICENSE | |
parent | a7a180bd8158a0a2151f0711b874a7495820d6e0 (diff) | |
download | rails-856ffbe7058065a34a708fd5b398c0553f9f1f97.tar.gz rails-856ffbe7058065a34a708fd5b398c0553f9f1f97.tar.bz2 rails-856ffbe7058065a34a708fd5b398c0553f9f1f97.zip |
docs, make association `autosave: true` examples runnable. Closes #14700
[ci skip]
The examples are written in a way you expect them to be executable.
However one snippet assumed there to be two comments when only one
was created above.
The defined models did not extend `ActiveRecord::Base`
The example used `comments.last.mark_for_destruction`. This does no
longer load the whole collection but just the last record. It is
then refetcht on subsequent calls to `last`. This breaks the example.
Diffstat (limited to 'activerecord/MIT-LICENSE')
0 files changed, 0 insertions, 0 deletions