NoBrainerORM / nobrainer

Ruby ORM for RethinkDB
http://nobrainer.io/
Other
387 stars 49 forks source link

upsert won't work with polymorphic association #287

Open zedtux opened 2 years ago

zedtux commented 2 years ago

Given a model including a belongs_to association with the polymorphic: true attribute, calling .upsert or .upsert! fails with the error class NoBrainer::Error::InvalidType from the file document/association/belongs_to:107.