Skip to content

Commit 432d5c6

Browse files
committed
[WT-204] Added fix for Rubygems 1.5.x undefined local variable or method 'version_requirements'
1 parent 5890d3b commit 432d5c6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

config/environment.rb

+11
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,17 @@
33
# Specifies gem version of Rails to use when vendor/rails is not present
44
RAILS_GEM_VERSION = '2.3.17' unless defined? RAILS_GEM_VERSION
55

6+
if Gem::VERSION >= "1.3.6"
7+
module Rails
8+
class GemDependency
9+
def requirement
10+
r = super
11+
(r == Gem::Requirement.default) ? nil : r
12+
end
13+
end
14+
end
15+
end
16+
617
# Bootstrap the Rails environment, frameworks, and default configuration
718
require File.join(File.dirname(__FILE__), 'boot')
819

0 commit comments

Comments
 (0)