ActiveResource and inheritance

Quotation < Document < ActiveResource

doc = Document.find(id) # GET http://someurl/documents/&lt;id&gt;\.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