use of colons in if statements is deprecated on ruby 1.9