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
Quotation < Document < ActiveResource
doc = Document.find(id)
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.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs