ActiveResource and inheritance

Quotation < Document < ActiveResource

doc = Document.find(id)

GET http://someurl/documents/.xml

doc.class # => Document
instantiates Document even when the record is a Quotation

How do get the doc to be instantiated as Quotation?

thanks, Slava

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs