From e6f54290aff2982fe1c295d4b0ac6793a55fa112 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Mon, 3 Dec 2007 02:01:21 +0000 Subject: Added ActiveRecord::Base#becomes to turn a record into one of another class (mostly relevant for STIs) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8259 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activerecord/CHANGELOG | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'activerecord/CHANGELOG') diff --git a/activerecord/CHANGELOG b/activerecord/CHANGELOG index b8acc5f148..b4d8b7b372 100644 --- a/activerecord/CHANGELOG +++ b/activerecord/CHANGELOG @@ -1,5 +1,9 @@ *SVN* +* Added ActiveRecord::Base#becomes to turn a record into one of another class (mostly relevant for STIs) [DHH]. Example: + + render :partial => @client.becomes(Company) # renders companies/company instead of clients/client + * Fixed that to_xml should not automatically pass :procs to associations included with :include #10162 [chuyeow] * Fix documentation typo introduced in [8250]. Closes #10339 [Henrik N] -- cgit v1.2.3