squeel icon indicating copy to clipboard operation
squeel copied to clipboard

Bug: scope_for_create with polymorphic association

Open Peeja opened this issue 12 years ago • 2 comments

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.

Peeja avatar Oct 22 '13 22:10 Peeja

Possibly related to #265?

Peeja avatar Oct 22 '13 22:10 Peeja

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.

Peeja avatar Oct 22 '13 22:10 Peeja