How to check if a rails session is already loaded?

ruby-on-rails-3

Solution

session.loaded? does the trick.

Problem

I want to check if a rails session is already loaded. If I trace the session I get this: ``` Session: #<Rack::Session::Abstract::SessionHash:0x8e3e not yet loaded> ```

Original source