work around regression in ruby head

This commit is contained in:
Sam 2013-10-28 15:13:10 +11:00
parent 2fa911f133
commit da62a10b77
1 changed files with 8 additions and 0 deletions

View File

@ -18,6 +18,14 @@ module Discourse
# Application configuration should go into files in config/initializers
# -- all .rb files in that directory are automatically loaded.
# HACK!! regression in rubygems / bundler in ruby-head
if RUBY_VERSION == "2.1.0"
$:.map! do |path|
path = File.expand_path(path.sub("../../","../")) if path =~ /fast_xor/ && !File.directory?(File.expand_path(path))
path
end
end
require 'discourse'
require 'js_locale_helper'