Permalink
Browse files

Switch to Gem.activate_spec in require

  • Loading branch information...
1 parent e0ff6a9 commit 403dca2d2ace7e83acf783b45cd1251e9fa5e3e2 @zenspider zenspider committed Mar 14, 2011
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/rubygems/custom_require.rb
@@ -46,8 +46,7 @@ def require path
end
found_specs.each do |found_spec|
- # FIX: this is dumb, activate a spec instead of name/version
- Gem.activate found_spec.name, found_spec.version
+ Gem.activate_spec found_spec
end
end

0 comments on commit 403dca2

Please sign in to comment.