Skip to content
This repository has been archived by the owner on Mar 30, 2022. It is now read-only.

Bug: scope_for_create with polymorphic association #279

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Peeja
Copy link

@Peeja Peeja commented Oct 22, 2013

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.

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.
@Peeja
Copy link
Author

Peeja commented Oct 22, 2013

Possibly related to #265?

@Peeja
Copy link
Author

Peeja commented Oct 22, 2013

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant