From f5ba33ce6711ce8e10d4e18aea0cce729b0d562c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Vanicat?= Date: Wed, 17 Nov 2010 15:50:47 +0100 Subject: [PATCH] Resove some syntax error with ruby 1.8 --- app/middleware/flash_session_cookie_middleware.rb | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/app/middleware/flash_session_cookie_middleware.rb b/app/middleware/flash_session_cookie_middleware.rb index a3c54a6..9ec58bb 100644 --- a/app/middleware/flash_session_cookie_middleware.rb +++ b/app/middleware/flash_session_cookie_middleware.rb @@ -10,12 +10,10 @@ class FlashSessionCookieMiddleware if env['HTTP_USER_AGENT'] =~ /^(Adobe|Shockwave) Flash/ req = Rack::Request.new(env) env['HTTP_COOKIE'] = [ @session_key, - req.params[@session_key] ] - .join('=').freeze unless req.params[@session_key].nil? - env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}" - .freeze unless req.params['_http_accept'].nil? + req.params[@session_key] ].join('=').freeze unless req.params[@session_key].nil? + env['HTTP_ACCEPT'] = "#{req.params['_http_accept']}".freeze unless req.params['_http_accept'].nil? end @app.call(env) end -end \ No newline at end of file +end