jeffp/enumerated_attribute — Issue #44: creating instance with association doesn't work against AR3.2.1
Author: kakutani
Created: 2012-01-30 07:27:46+00:00
State: open

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 example on kakutani/enumerated_attribute@d885ac072c0f1a48ff79be3c6bf0cc6cf6be1f7b.
That will success against AR 3.1.3 and it will fail against AR 3.2.1 (ran against cb915e2f215581441e368cbb9abe3fc1c4159a8d).
(I think related commit is rails/rails@50d395f96ea05da1e02459688e94bff5872c307b.)

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

Thanks in advance.