aboutsummaryrefslogtreecommitdiffstats
path: root/railties/lib
diff options
context:
space:
mode:
Diffstat (limited to 'railties/lib')
-rw-r--r--railties/lib/rails/gem_dependency.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/gem_dependency.rb b/railties/lib/rails/gem_dependency.rb
index 2ffacd17b6..f9c37cb70a 100644
--- a/railties/lib/rails/gem_dependency.rb
+++ b/railties/lib/rails/gem_dependency.rb
@@ -10,7 +10,7 @@ module Rails
@name = name.to_s
if options[:version]
@requirement = Gem::Requirement.create(options[:version])
- @version = @requirement.requirements.first.last
+ @version = @requirement.instance_variable_get("@requirements").first.last
end
@lib = options[:lib]
@source = options[:source]