[ActiveSupport] Hash#deep_delete/0+ core extension

Its a quite necessary feature which is needed for working with too large hashes, when you need to clear some data from specified fields which are located on different nesting levels, e.g. personal data. Its provides removing key-value pair in any level nesting of hash pair.

{ k: 1, v: { l: { t: 2 } } }.deep_delete(:t)

=> {:k=>1, :v=>{:l=>{}}


I have code for this feature and want to commit this.

Arity is a 1+