diff options
author | Yves Senn <yves.senn@gmail.com> | 2013-03-01 15:30:22 +0100 |
---|---|---|
committer | Yves Senn <yves.senn@gmail.com> | 2013-03-01 21:29:46 +0100 |
commit | b9399c470bc7cf85952ab0cc7113f4f825a1a7b3 (patch) | |
tree | 8c647d37ee5ac822bf41731e3361888f668570be /activerecord/lib/rails | |
parent | ce7133bf520ea3f2b731448e8c697ed330340bb2 (diff) | |
download | rails-b9399c470bc7cf85952ab0cc7113f4f825a1a7b3.tar.gz rails-b9399c470bc7cf85952ab0cc7113f4f825a1a7b3.tar.bz2 rails-b9399c470bc7cf85952ab0cc7113f4f825a1a7b3.zip |
deal with `#append` and `#prepend` on association collections.
Closes #7364.
Collection associations behave similar to Arrays. However there is no
way to prepend records. And to append one should use `<<`. Before this
patch `#append` and `#prepend` did not add the record to the loaded
association.
`#append` now behaves like `<<` and `#prepend` is not defined.
Diffstat (limited to 'activerecord/lib/rails')
0 files changed, 0 insertions, 0 deletions