*Wouldn't be nice if this could save the new type of the record, if it 
has a "type" column (single table inheritance)?

*>> a = Account.find 2
=> #<Account id: 2 ...>
 >> a.becomes(ManagerAccount)
=> #<ManagerAccount id: 2 ...>
 >> a.save
=> true
 >> a = Account.find 2
=> #<Account id: 2 ...>**

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Core" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-core?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to