Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The method `Hash#except` [was added in Ruby 3.0](ruby/ruby@82ca8c7) so it would be nice that calling `except` in a `Sinatra::IndifferentHash` supported the indifferent access that the latter provides – right now, calling `except(:a)` on `Sinatra::IndifferntHash[a: :a]` would not filter the `a` key. This commits adds indifferent access support to except so that it will exclude the passed key independently if the key is passed as a `String` or `Symbol`. --------- Co-authored-by: Santiago Rodriguez <santiago.rodriguez@ext.airbnb.com> Co-authored-by: Eloy Pérez <ej.perezgomez@gmail.com>
- Loading branch information