Does permit and except with the same key make sense in Ruby on Rails?

21 Views Asked by At

I came across the following in some Rails legacy code:

params.permit(:a_key).except(:a_key)

It seems to me that this would produce a null hash every time. Am I missing something? I'm very much a non-expert in Rails, so help would be appreciated.

0

There are 0 best solutions below