Browse files

fixing drunk typos :D

  • Loading branch information...
1 parent 6940afa commit 5d7690230c4890c7eeffdfd0165a9316e084dea4 @rudkovskyi rudkovskyi committed Mar 14, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 app/helpers/sessions_helper.rb
View
8 app/helpers/sessions_helper.rb
@@ -21,13 +21,13 @@ def sign_out
private
def generate_and_set_token(user)
- set_cookie_token(user.generate_token(:remember_token))
+ set_cookie_token user.generate_token(:remember_token)
end
- def set_cookie_token(value, expires)
- cookies.signed[:remember_me_token] = {
+ def set_cookie_token(value, expires = nil)
+ cookies.signed[:remember_token] = {
:value => value,
- :expires => Time.now + 7.days,
+ :expires => (expires || Time.now + 7.days),
:httponly => true
}
end

0 comments on commit 5d76902

Please sign in to comment.