encrypted-cookie-store 0.3 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -16,12 +16,10 @@ module EncryptedCookieStore
|
|
16
16
|
end
|
17
17
|
|
18
18
|
if Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 0
|
19
|
-
puts "+++ 3.0"
|
20
19
|
def set_cookie(request, options)
|
21
20
|
request.cookie_jar.encrypted[@key] = options
|
22
21
|
end
|
23
22
|
elsif Rails::VERSION::MAJOR == 3 && Rails::VERSION::MINOR == 1
|
24
|
-
puts "+++ 3.1"
|
25
23
|
def set_cookie(env, session_id, cookie)
|
26
24
|
request = ActionDispatch::Request.new(env)
|
27
25
|
request.cookie_jar.encrypted[@key] = cookie
|