lib/challah/simple_cookie_store.rb in challah-0.8.2 vs lib/challah/simple_cookie_store.rb in challah-0.8.3
- old
+ new
@@ -27,12 +27,12 @@
write_cookies!
end
private
def clear
- cookies.delete(session_cookie_name, :domain => domain)
- cookies.delete(validation_cookie_name, :domain => domain)
+ cookies.delete(session_cookie_name, domain: domain)
+ cookies.delete(validation_cookie_name, domain: domain)
end
def cookie_values
session_cookie && session_cookie.to_s.split(joiner)
end
@@ -103,22 +103,22 @@
Encrypter.md5(value)
end
def write_cookies!
cookies[session_cookie_name] = {
- :value => session_cookie_value,
- :expires => expiration,
- :secure => false,
- :httponly => true,
- :domain => domain
+ value: session_cookie_value,
+ expires: expiration,
+ secure: false,
+ httponly: true,
+ domain: domain
}
cookies[validation_cookie_name] = {
- :value => validation_cookie_value,
- :expires => expiration,
- :secure => false,
- :httponly => true,
- :domain => domain
+ value: validation_cookie_value,
+ expires: expiration,
+ secure: false,
+ httponly: true,
+ domain: domain
}
end
end
end
\ No newline at end of file