fix of https://github.com/raphendyr/gitlabhq/issues/8

I'm not ruby programmer, but this works for me