Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously we only added the "lib" subdirectory to the load path when
Browse files Browse the repository at this point in the history
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]
technoweenie committed Jun 1, 2008
1 parent 6a975d6 commit 71528b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion railties/lib/rails/gem_dependency.rb
Original file line number Diff line number Diff line change
@@ -31,7 +31,9 @@ def add_load_paths
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

0 comments on commit 71528b1

Please sign in to comment.