Skip to content

Instantly share code, notes, and snippets.

Created January 28, 2009 22:48
What would you like to do?
# Modified from
Dir["#{File.join(File.dirname(__FILE__), '..')}/vendor/gems/**"].map do |dir|
require_paths_file = File.join(dir, ".require_paths")
paths = File.exists?(require_paths_file) ?[\r\n]+/).collect {|subdir| File.join(dir, subdir) } :
[( = "#{dir}/lib") ? lib : dir)]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment