Sign in through GitHub

Please read for an updated status on RailsCasts:

Learn more or hide this

burtonic's Profile

GitHub User: burtonic

Comments by

Avatar

What is the purpose ||= in ruby?

@current_user ||= User.find(session[:user_id]) if session[:user_id]