Fix to helper work with 3.* rails app