diff options
author | Matthew Draper <matthew@trebex.net> | 2017-05-28 17:13:24 +0930 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-28 17:13:24 +0930 |
commit | cfd2eff46c90425d96bb912d44d5e290cf523ea6 (patch) | |
tree | 84faf5ced452619e07c71a0c964ef2024839c344 /actionpack/lib/action_dispatch | |
parent | 1758292f55d2a938659b47fe19b23ced4881cfad (diff) | |
parent | 3498aacbbebb41e529b6755f4ccfdfbb84c28830 (diff) | |
download | rails-cfd2eff46c90425d96bb912d44d5e290cf523ea6.tar.gz rails-cfd2eff46c90425d96bb912d44d5e290cf523ea6.tar.bz2 rails-cfd2eff46c90425d96bb912d44d5e290cf523ea6.zip |
Merge pull request #28895 from codeforkjeff/fix-session-keys-and-values-methods
Add lazy loading to #keys and #values methods in Session
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/request/session.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/request/session.rb b/actionpack/lib/action_dispatch/request/session.rb index 74ba6466cf..3547a8604f 100644 --- a/actionpack/lib/action_dispatch/request/session.rb +++ b/actionpack/lib/action_dispatch/request/session.rb @@ -101,11 +101,13 @@ module ActionDispatch # Returns keys of the session as Array. def keys + load_for_read! @delegate.keys end # Returns values of the session as Array. def values + load_for_read! @delegate.values end |