daily pastebin goal
32%
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def handle_remember_cookie!(new_cookie_flag)
  2.   return unless @current_user
  3.  
  4.   case
  5.   when valid_remember_cookie?
  6.     @current_user.refresh_token # keeping same expiry date
  7.   when new_cookie_flag
  8.     @current_user.remember_me
  9.   else
  10.     @current_user.forget_me
  11.   end
  12.  
  13.   send_remember_cookie!
  14. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top