Permalink
Browse files

Bundler returns a Pathname from #loaded_from; work around it

  • Loading branch information...
1 parent 9cfa875 commit f175d19e2afa3a7a642ac38591596a7b550f4329 @jeremy jeremy committed Mar 17, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/vendor_gem_source_index.rb
@@ -37,7 +37,7 @@ def refresh!
# handle vendor Rails gems - they are identified by having loaded_from set to ""
# we add them manually to the list, so that other gems can find them via dependencies
Gem.loaded_specs.each do |n, s|
- next unless s.loaded_from.empty?
+ next if s.loaded_from.present?
vendor_gems[s.full_name] = s
end

0 comments on commit f175d19

Please sign in to comment.