This project is archived and is in readonly mode.
undefined method 'remove_attributes_protected_from_mass_assignment'
-
Adrian
I figured it out. I was using state machine in the model and that tries to access the 'remove_attributes_protected_from_mass_assignment' method.
I am having the same problem with the factory girl gem. Do you have any recommendation on steps to take to make these work again?
-
Trevor Rosen
Having the same issue -- model-based transitions breaking as well as original assignments in FactoryGirl-based fixtures.
-
Keeran
Adrian: please can you post whatever fix / solution you worked out with the gem owner? In the process of upgrading an app from beta3 -> rc1 and have hit the same problem.
Many thanks,
K
-
Keeran
Suspect this is what we need to change in state_machine, just wondering how you went about it:
http://github.com/klacointe/state_machine/commit/da21e98dad6199050c...
-
Keeran
Sorry for spamming Rails tickets about this, but fix is here:
http://github.com/pluginaweek/state_machine/commit/1e5e04bb67be0b50...
-
Adrian
Hey there.
Sorry, did not cache your comment earlier. The problem with state machine was cascading in to factory girl so if you update to use the state_machine's master branch from github in your gemfile it should work fine.
Thanks for linking to the fix though.
-
Rohit Arondekar
- State changed from new to invalid
- Importance changed from to Low
-
Jeff Kreeftmeijer
Automatic cleanup of spam.