This blog is part of our Rails 5 series.
We are all guilty of treating
as a plain hash at some point or the other.
But with Rails 5,
ActionController::Parameters will no longer inherit
HashWithIndifferentAccess allowed programmers
to call enumerable methods over
ActionController::Parameters to lose its
there by rendering Strong Parameters as a barebone Hash.
would discourage such operations.
However since this change would have meant a major impact
on all of the upgrading applications as they would have crashed
NoMethodErrorfor all of those undesired methods.
Hence this feature would go through a deprecation cycle,
showing deprecation warnings for all of those
If you need to convert
in a true hash then it supports
will continue to have methods like
fetch, slice, slice!, except, except!, extract!, delete etc.
You can take a detailed look at them