diff options
Diffstat (limited to 'railties/lib')
-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]) |