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