reorderが復活していた。

[ref.] default_scopeを個別に外す。 » サイキョウライン

ここでdeprecatedを見かけて以来exceptを使っていたのですが、すぐあとにあっさり解除されていたことを知りました。

rails/activerecord/CHANGELOG at 3-0-stable · rails/rails · GitHub

* reorder is deprecated in favor of except(:order).order(…) [Santiago Pastorino]

rails/activerecord/CHANGELOG at 3-0-stable · rails/rails · GitHub

* Un-deprecate reorder method [Sebastian Martinez]

CHANGELOGをちゃんと追うのは大事ですね。。。

The Rails CHANGELOGs – Jonathan Julian

It’s really best to keep your apps up to date with the latest minor version of Rails. But since that doesn’t always happen, you might find yourself needing to update. When I’m updating minor versions, I’m often curious to know what changed. Release Notes are not published on the blog for every minor release, but fortunately, the Rails team does a great job of recording notable changes into the CHANGELOG files.

タイトルとURLをコピーしました