rails/rails — pull request #9510 by senny (2013-03-01 14:35:56+00:00)
Title: deprecate `#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.

In order to make the API consistent I deprecated `#append` and `#prepend`.
Both of them delegate to `<<` internally.