Quotation < Document < ActiveResource doc = Document.find(id) # GET http://someurl/documents/<id>.xml # <quotation> # ... # </quotation>
doc.class # => Document instantiates Document even when the record is a Quotation How do get the doc to be instantiated as Quotation? thanks, Slava --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" 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-talk?hl=en -~----------~----~----~----~------~----~------~--~---

