You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Grape currently hard-codes the use of Hashie::Mash. However this can lead to problems with certain parameter names. Sometimes though this is the preferred behaviour. To make use of Hashies built-in disable_warnings functionality, it would be great if the base class would be configurable.
One could even think about making Hashie completely optional and returning a regular Hash, seeing as how one also needs the hashie-forbidden_attributes gem when in a fairly up-to-date Rails environment. A lot of overhead just for the simple syntactical advantage of being able to write params.foo instead of params[:foo], imho.
The text was updated successfully, but these errors were encountered:
Grape currently hard-codes the use of
Hashie::Mash
. However this can lead to problems with certain parameter names. Sometimes though this is the preferred behaviour. To make use of Hashies built-indisable_warnings
functionality, it would be great if the base class would be configurable.One could even think about making Hashie completely optional and returning a regular
Hash
, seeing as how one also needs thehashie-forbidden_attributes
gem when in a fairly up-to-date Rails environment. A lot of overhead just for the simple syntactical advantage of being able to writeparams.foo
instead ofparams[:foo]
, imho.The text was updated successfully, but these errors were encountered: