diff options
Diffstat (limited to 'actionpack/lib/action_dispatch/request/session.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/request/session.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/request/session.rb b/actionpack/lib/action_dispatch/request/session.rb index 2ff651fc31..bc5e0670e0 100644 --- a/actionpack/lib/action_dispatch/request/session.rb +++ b/actionpack/lib/action_dispatch/request/session.rb @@ -93,8 +93,8 @@ module ActionDispatch @delegate[key.to_s] end - # Returns the nested value specified by the sequence of key, returning - # nil if any intermediate step is nil. + # Returns the nested value specified by the sequence of keys, returning + # +nil+ if any intermediate step is +nil+. def dig(*keys) load_for_read! keys = keys.map.with_index { |key, i| i.zero? ? key.to_s : key } |