News for hackers. Stuff that matters.
Re:Github Ruby Styleguide by gurkendoktor on Thursday December 13, 2012 @01:30AM (#4914583)
Skipping the second assignment if I don't need it is more of an optimisation. The "long form" would be,

first_user = User.find(4) if first_user second_user = User.find(6) if second_user ... end end

There are no comments on this comment yet.