Fix session.id call in Rails 3.2 (#36)
This commit is contained in:
parent
107339ea9e
commit
45a9056cf4
|
@ -8,7 +8,8 @@ module RuCaptcha
|
|||
|
||||
# session key of rucaptcha
|
||||
def rucaptcha_sesion_key_key
|
||||
['rucaptcha-session', session.id].join(':')
|
||||
session_id = session.respond_to?(:id) ? session.id : session[:session_id]
|
||||
['rucaptcha-session', session_id].join(':')
|
||||
end
|
||||
|
||||
# Generate a new Captcha
|
||||
|
|
Loading…
Reference in New Issue