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
When a task receives a params object whose inspect prints {:subdomain=>"support”}, calling params.fetch(:support) surprisingly returns nil. Clearly this is not a hash.
It looks like this is implemented via a method_missing which performs lookup. This implementation should throw if any arguments are passed, because if you're providing arguments you clearly didn't expect this to be a simple getter method.
The text was updated successfully, but these errors were encountered:
When a task receives a params object whose
inspect
prints{:subdomain=>"support”}
, callingparams.fetch(:support)
surprisingly returnsnil
. Clearly this is not a hash.It looks like this is implemented via a
method_missing
which performslookup
. This implementation should throw if any arguments are passed, because if you're providing arguments you clearly didn't expect this to be a simple getter method.The text was updated successfully, but these errors were encountered: