Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to check if a rails session is already loaded?

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>
like image 521
Lieven Cardoen Avatar asked Apr 25 '12 10:04

Lieven Cardoen


1 Answers

session.loaded? does the trick.

like image 77
Lieven Cardoen Avatar answered Nov 13 '22 01:11

Lieven Cardoen