Render has_repository rails < 4 compatible