I'm adding strong parameters to a Rails 3.2 project. It works fine with the models I want to protect. But it seems to affect other models/controllers. For example, serialization and ransack search parameter.
It seems because strong parameters changes the class of params
from HashWithIndifferentAccess
to ActionController::Parameters
. I wonder if there a way (or is it a good practice) to convert params
back so that I can use strong parameters and don't break the current code?