Regexp.escape which is called by Gem.loaded_path? (/usr/local/lib/ruby/site_ruby/1.9.1/rubygems.rb) expects the path as a String, not a Pathname. Convert Pathnames to Strings prior to calling 'require'

master
fallwith 2011-06-22 16:01:33 -07:00
parent 5b3740e0f2
commit 8f91eeb93d
1 changed files with 3 additions and 3 deletions

View File

@ -23,6 +23,6 @@ end
this_dir = Pathname.new File.dirname(__FILE__)
require this_dir.join("import")
require this_dir.join("active_record/adapters/abstract_adapter")
require this_dir.join("synchronize")
require this_dir.join("import").to_s
require this_dir.join("active_record/adapters/abstract_adapter").to_s
require this_dir.join("synchronize").to_s