News for hackers. Stuff that matters.
Re:Rails 5.0: Action Cable, API mode, and more by abvdasker on Thursday June 30, 2016 @08:02PM (#12012890)
The upgrade is anything but easy if an existing application uses protected attributes extensively (removed from Rails 5). Because protected attributes does a shitload of monkey patching it's hard to know exactly what side effects its removal might have, especially in any application that uses nested attributes for mass assignment/initialization of a model's relations.
Re:Rails 5.0: Action Cable, API mode, and more by rafaelfranca on Thursday June 30, 2016 @10:23PM (#12013494)
I'm being working in this kind of application and there is no problem with the "shitload of monkey patching". Most of work was being done in the controller layer to filter the parameters. After you finished this you can safely remove the protected_attributes gem. To make this we created a migration sanitizer for the protected_attributes gem that I plan to integrate in the gem itself very soon.