squeel
squeel copied to clipboard
Bug: scope_for_create with polymorphic association
In a #where specifying a value for a polymorphic association, the _type is
not set in the #scope_for_create attributes. In vanilla AR4, _type and _id
are both set.
Failing spec is attached.
Possibly related to #265?
By the way, this and #277 were exceedingly easy to write failing specs for, despite having no idea how Squeel's internals work. I had the specs running green in a couple of minutes, and adding my own test was straightforward. Thanks for making Squeel so awesome to work with.