diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-03 02:01:21 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2007-12-03 02:01:21 +0000 |
commit | e6f54290aff2982fe1c295d4b0ac6793a55fa112 (patch) | |
tree | 06036045473c531ea71e62cf3fae4cedb9fe370a /activerecord/CHANGELOG | |
parent | c4cb2dd01410417b5ab027aff5d472d68d9cbdb1 (diff) | |
download | rails-e6f54290aff2982fe1c295d4b0ac6793a55fa112.tar.gz rails-e6f54290aff2982fe1c295d4b0ac6793a55fa112.tar.bz2 rails-e6f54290aff2982fe1c295d4b0ac6793a55fa112.zip |
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
Diffstat (limited to 'activerecord/CHANGELOG')
-rw-r--r-- | activerecord/CHANGELOG | 4 |
1 files changed, 4 insertions, 0 deletions
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] |