diff options
author | Rick Olson <technoweenie@gmail.com> | 2008-04-09 16:24:32 +0000 |
---|---|---|
committer | Rick Olson <technoweenie@gmail.com> | 2008-04-09 16:24:32 +0000 |
commit | 95fdc82fb2a46b7f7746a82de1e2db350371106d (patch) | |
tree | 3ece10a7303ccbc70fc8e0aa07f7a4fa79f54872 | |
parent | 8a5a9dcbf64843f064b6e8a0b9c6eea8f0b8536e (diff) | |
download | rails-95fdc82fb2a46b7f7746a82de1e2db350371106d.tar.gz rails-95fdc82fb2a46b7f7746a82de1e2db350371106d.tar.bz2 rails-95fdc82fb2a46b7f7746a82de1e2db350371106d.zip |
Require rubygems if needed when initializing GemDependency instances
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9245 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
-rw-r--r-- | railties/lib/rails/gem_dependency.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/railties/lib/rails/gem_dependency.rb b/railties/lib/rails/gem_dependency.rb index 0b2e6eb93d..45d838bcc1 100644 --- a/railties/lib/rails/gem_dependency.rb +++ b/railties/lib/rails/gem_dependency.rb @@ -7,6 +7,7 @@ module Rails 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]) |