lib/omni_auth/strategies/saml.rb
# Deletes Hash pairs with `nil` values.
# From https://github.com/mkdynamic/omniauth-facebook/blob/972ed5e3456bcaed7df1f55efd7c05c216c8f48e/lib/omniauth/strategies/facebook.rb#L122-127
Deletes Hash pairs with `nil` values.
Deletes Hash pairs with ` nil ` values .
def prune!(hash)
        hash.delete_if do |_, value|
          prune!(value) if value.is_a?(Hash)
          value.nil? || (value.respond_to?(:empty?) && value.empty?)
        end
      end
def prune! ( hash ) hash . delete_if do | _ , value | prune! ( value ) if value . is_a? ( Hash ) value . nil? || ( value . respond_to? ( :empty? ) && value . empty? ) end end
Deletes Hash pairs with `nil` values.
Deletes Hash pairs with ` nil ` values .
hash
<not_specific>