Need a unique gift idea?
A Pastebin account makes a great Christmas gift
SHARE
TWEET

Untitled

a guest Mar 13th, 2018 54 Never
Upgrade to PRO!
ENDING IN00days00hours00mins00secs
 
  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