class ActionDispatch::Request::Session

def dig(*keys)

+nil+ if any intermediate step is +nil+.
Returns the nested value specified by the sequence of keys, returning
def dig(*keys)
  load_for_read!
  keys = keys.map.with_index { |key, i| i.zero? ? key.to_s : key }
  @delegate.dig(*keys)
end