summaryrefslogtreecommitdiffstats
path: root/example/sample.ru
diff options
context:
space:
mode:
authorJérémy Zurcher <jeremy@asynk.ch>2012-01-17 17:18:41 +0100
committerJérémy Zurcher <jeremy@asynk.ch>2012-01-17 17:18:41 +0100
commitd0a23c4920794c9f8dd4189d7432a6b49da898d8 (patch)
treea4ae0397d8b3e044caa1948c3cd8eeacff158b23 /example/sample.ru
parentd306318eab974e596d9ae07d7ab4f9170ce025f7 (diff)
downloadzorglub-d0a23c4920794c9f8dd4189d7432a6b49da898d8.zip
zorglub-d0a23c4920794c9f8dd4189d7432a6b49da898d8.tar.gz
App: remove session_ prefix from session_options keys
Diffstat (limited to 'example/sample.ru')
-rw-r--r--example/sample.ru4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/sample.ru b/example/sample.ru
index a31aa8a..9dc4d13 100644
--- a/example/sample.ru
+++ b/example/sample.ru
@@ -65,7 +65,7 @@ APP = Zorglub::App.new do
opt! :debug, true
opt! :engine, :haml
opt!:root, File.dirname( File.absolute_path(__FILE__) )
- opt(:session_options)[:session_on] = true
+ opt(:session_options)[:enabled] = true
map '/url1', Node1
end
#
@@ -149,7 +149,7 @@ map '/' do
use Rack::Lint
use Rack::ShowExceptions
if USE_RACK_SESSION
- use Rack::Session::Cookie, :key=>Zorglub::Config.session_key, :secret=>Zorglub::Config.session_secret,
+ use Rack::Session::Cookie, :key=>APP.opt(:session_options)[:key], :secret=>APP.opt(:session_options)[:secret],
:path=>'/', :http_only=>true, :expire_after=>30
end
run APP