Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creating instance with association doesn't work against AR3.2.1 #44

Open
kakutani opened this issue Jan 30, 2012 · 0 comments
Open

creating instance with association doesn't work against AR3.2.1 #44

kakutani opened this issue Jan 30, 2012 · 0 comments

Comments

@kakutani
Copy link

Against AR 3.2.1, creating AR instance with association like Employee.create!(... :company => c) doesn't work and raise ActiveModel::MissingAttributeError (same on #new and #create).

I added that as an example on kakutani/enumerated_attribute@d885ac0.
That will success against AR 3.1.3 and fail against AR 3.2.1 (ran against cb915e2).
(I think related commit is rails/rails@50d395f.)

I've just fixed this issue on kakutani/enumerated_attribute@942087b,
but I'm not sure this way is correct or not.

Any idea how I can fix this issue?
Thanks in advance.

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

No branches or pull requests

1 participant