Fix Enumerator in Ruby 1.8.7 (https://github.com/jbox-web/redmine_git_hosting/issues/4)