RailsCasts Pro episodes are now free!

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]