flyerhzm/rails_best_practices — pull request #76 by regedor (2011-11-17 17:31:06+00:00)
Title: Hotfix

Again, just added some conditions for avoiding exceptions.
It was happening in some projects I was analyzing. Now I could analyze the 60 rails projects that I was trying to. I don't now I the object was nil on those case (have not digged into the code) but I think returning 0 is the right choice when it happens. cheers