This should be more performant and prevent problems with certain attribute names (e.g. Hashie::Mash will complain about count and key).
In addition, we could raise a deprecation warning in the indifferent_access? method when it is accessed for the first time and if it returns true. That way, library users can adopt the new default behavior by calling Restify::Processors::Json.indifferent_access = true somewhere early in their applications.
Let's change this default value for version 2.0.
This should be more performant and prevent problems with certain attribute names (e.g. Hashie::Mash will complain about
count
andkey
).In addition, we could raise a deprecation warning in the
indifferent_access?
method when it is accessed for the first time and if it returnstrue
. That way, library users can adopt the new default behavior by callingRestify::Processors::Json.indifferent_access = true
somewhere early in their applications.