mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Previously we only added the "lib" subdirectory to the load path when
setting up gem dependencies for frozen gems. Now we add the "ext" subdirectory as well for those gems which have compiled C extensions as well. [Wincent Colaiuta] [#268 state:resolved]
This commit is contained in:
@@ -31,7 +31,9 @@ module Rails
|
||||
args << @requirement.to_s if @requirement
|
||||
gem *args
|
||||
else
|
||||
$LOAD_PATH << File.join(unpacked_paths.first, 'lib')
|
||||
$LOAD_PATH.unshift File.join(unpacked_paths.first, 'lib')
|
||||
ext = File.join(unpacked_paths.first, 'ext')
|
||||
$LOAD_PATH.unshift(ext) if File.exist?(ext)
|
||||
@frozen = true
|
||||
end
|
||||
@load_paths_added = true
|
||||
|
||||
Reference in New Issue
Block a user