Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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]
  • Loading branch information...
commit 71528b1825ce5184b23d09f923cb72f4073ce8ed 1 parent 6a975d6
risk danger olson technoweenie authored

Showing 1 changed file with 3 additions and 1 deletion. Show diff stats Hide diff stats

  1. +3 1 railties/lib/rails/gem_dependency.rb
4 railties/lib/rails/gem_dependency.rb
@@ -31,7 +31,9 @@ def add_load_paths
31 31 args << @requirement.to_s if @requirement
32 32 gem *args
33 33 else
34   - $LOAD_PATH << File.join(unpacked_paths.first, 'lib')
  34 + $LOAD_PATH.unshift File.join(unpacked_paths.first, 'lib')
  35 + ext = File.join(unpacked_paths.first, 'ext')
  36 + $LOAD_PATH.unshift(ext) if File.exist?(ext)
35 37 @frozen = true
36 38 end
37 39 @load_paths_added = true

0 comments on commit 71528b1

Please sign in to comment.
Something went wrong with that request. Please try again.