Browse files

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...
1 parent 8a5a9dc commit 95fdc82fb2a46b7f7746a82de1e2db350371106d @technoweenie technoweenie committed Apr 9, 2008
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails/gem_dependency.rb
View
1 railties/lib/rails/gem_dependency.rb
@@ -7,6 +7,7 @@ def self.unpacked_path
end
def initialize(name, options = {})
+ require 'rubygems' unless Object.const_defined?(:Gem)
@name = name.to_s
if options[:version]
@requirement = Gem::Requirement.create(options[:version])

0 comments on commit 95fdc82

Please sign in to comment.