diff options
author | Joshua Peek <josh@joshpeek.com> | 2009-02-07 16:47:44 -0600 |
---|---|---|
committer | Joshua Peek <josh@joshpeek.com> | 2009-02-07 16:47:44 -0600 |
commit | 5fbacde2afc8ce25a65fdd084166d76c23c969c3 (patch) | |
tree | 5ae49f1a6aee1086ecc447aff30caddf6bca43af | |
parent | acd0612cdecccf7c759c9da55f575ffd08249dfe (diff) | |
download | rails-5fbacde2afc8ce25a65fdd084166d76c23c969c3.tar.gz rails-5fbacde2afc8ce25a65fdd084166d76c23c969c3.tar.bz2 rails-5fbacde2afc8ce25a65fdd084166d76c23c969c3.zip |
Session LazyHash#inspect triggers the hash to load
-rw-r--r-- | actionpack/lib/action_controller/session/abstract_store.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/lib/action_controller/session/abstract_store.rb b/actionpack/lib/action_controller/session/abstract_store.rb index 2f2a7410af..f6369abf15 100644 --- a/actionpack/lib/action_controller/session/abstract_store.rb +++ b/actionpack/lib/action_controller/session/abstract_store.rb @@ -47,6 +47,11 @@ module ActionController to_hash end + def inspect + load! unless @loaded + super + end + private def loaded? @loaded |