Skip to content
This repository
Browse code

Require rubygems if needed when initializing GemDependency instances

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
commit 95fdc82fb2a46b7f7746a82de1e2db350371106d 1 parent 8a5a9dc
risk danger olson technoweenie authored

Showing 1 changed file with 1 addition and 0 deletions. Show diff stats Hide diff stats

  1. +1 0  railties/lib/rails/gem_dependency.rb
1  railties/lib/rails/gem_dependency.rb
@@ -7,6 +7,7 @@ def self.unpacked_path
7 7 end
8 8
9 9 def initialize(name, options = {})
  10 + require 'rubygems' unless Object.const_defined?(:Gem)
10 11 @name = name.to_s
11 12 if options[:version]
12 13 @requirement = Gem::Requirement.create(options[:version])

0 comments on commit 95fdc82

Please sign in to comment.
Something went wrong with that request. Please try again.