public
Rubygem
Description: Merb Core: All you need. None you don't.
Homepage: http://www.merbivore.com
Clone URL: git://github.com/wycats/merb-core.git
properly set the session_id_key

Signed-off-by: Ezra Zygmuntowicz <ez@engineyard.com>
michaeldauria (author)
Tue Jun 03 18:56:24 -0700 2008
ezmobius (committer)
Wed Jun 04 20:41:29 -0700 2008
commit  b3fa33a6e565fcbbca03b64b8ff2d066a9ec60c4
tree    02f46c47eb23e5ef024ae70cc116f228f07c00f3
parent  ebf1531725a1fe078a9d85a23d84129d3b95bb01
...
550
551
552
553
554
555
556
 
 
557
558
559
...
550
551
552
 
 
 
 
553
554
555
556
557
0
@@ -550,10 +550,8 @@ class Merb::BootLoader::MixinSessionContainer < Merb::BootLoader
0
       if ["", "false", "none"].include?(session_store)
0
         Merb.logger.warn "Not Using Sessions"
0
       elsif reg = Merb.registered_session_types[session_store]
0
-        if session_store == "cookie"
0
-          Merb::BootLoader::MixinSessionContainer.check_for_secret_key
0
-          Merb::BootLoader::MixinSessionContainer.check_for_session_id_key
0
-        end
0
+        Merb::BootLoader::MixinSessionContainer.check_for_secret_key if session_store == "cookie"
0
+        Merb::BootLoader::MixinSessionContainer.check_for_session_id_key
0
         require reg[:file]
0
         include ::Merb::SessionMixin
0
         Merb.logger.warn reg[:description]

Comments