J
Justin Ko
I'm looking at this method and don't understand what ||= means:
def current_account
@account ||= Account.find(session[:account_id])
end
I have the ruby for rails book and can't find anything on it.
def current_account
@account ||= Account.find(session[:account_id])
end
I have the ruby for rails book and can't find anything on it.