diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-03 14:04:33 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-04-03 14:05:23 -0300 |
commit | 1e703f5d41ee6b1d52aababa04ed9bb094ad2533 (patch) | |
tree | 3433a633de3bb6ad87dba29a74853607878df232 | |
parent | 9035cfc0dfc2a34b27df926afd6dd1b7862c1076 (diff) | |
download | rails-1e703f5d41ee6b1d52aababa04ed9bb094ad2533.tar.gz rails-1e703f5d41ee6b1d52aababa04ed9bb094ad2533.tar.bz2 rails-1e703f5d41ee6b1d52aababa04ed9bb094ad2533.zip |
Move changelog entry to the top and fix conflict [ci skip]
-rw-r--r-- | activerecord/CHANGELOG.md | 42 |
1 files changed, 20 insertions, 22 deletions
diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 438064a403..cd6042c329 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,5 +1,25 @@ ## Rails 4.0.0 (unreleased) ## +* `belongs_to :touch` behavior now touches old association when + transitioning to new association. + + class Passenger < ActiveRecord::Base + belongs_to :car, touch: true + end + + car_1 = Car.create + car_2 = Car.create + + passenger = Passenger.create car: car_1 + + passenger.car = car_2 + passenger.save + + Previously only car_2 would be touched. Now both car_1 and car_2 + will be touched. + + *Adam Gamble* + * Extract and deprecate Firebird / Sqlserver / Oracle database tasks, because These tasks should be supported by 3rd-party adapter. @@ -598,28 +618,6 @@ *Aaron Stone + Rafael Mendonça França* * `Relation#merge` now only overwrites where values on the LHS of the -======= -* Belongs_to :touch behavior now touches old association when - transitioning to new association - - class Passenger < ActiveRecord::Base - belongs_to :car, touch: true - end - - car_1 = Car.create - car_2 = Car.create - - passenger = Passenger.create :car => car_1 - - passenger.car = car_2 - passenger.save - - Previously only car_2 would be touched. Now both car_1 and car_2 - will be touched. - - *Adam Gamble* - -* Relation#merge now only overwrites where values on the LHS of the merge. Consider: left = Person.where(age: [13, 14, 15]) |